re: comctl32: rebar: rewrite the layouting code