ctl = CreateWindowEx(exstyle, wclass, wtext, wstyle, r.left, r.top, r.right, r.bottom, cp->hwnd, (HMENU) wid, hinst, NULL); SendMessage(ctl, WM_SETFONT, cp->font, MAKELPARAM(TRUE, 0));
if (cp->hwnd) { ctl = CreateWindowEx(exstyle, wclass, wtext, wstyle, r.left, r.top, r.right, r.bottom, cp->hwnd, (HMENU) wid, hinst, NULL); SendMessage(ctl, WM_SETFONT, cp->font, MAKELPARAM(TRUE, 0));  if (!strcmp(wclass, "LISTBOX")) {  SetWindowPos(ctl, NULL, 0, 0, r.right, r.bottom, SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOZORDER); } }
HWND doctl(struct ctlpos *cp, RECT r,	   char *wclass, int wstyle, int exstyle, char *wtext, int wid){    HWND ctl;    /*     * Note nonstandard use of RECT. This is deliberate: by     * transforming the width and height directly we arrange to     * have all supposedly same-sized controls really same-sized.     */    r.left += cp->xoff;    MapDialogRect(cp->hwnd, &r);    ctl = CreateWindowEx(exstyle, wclass, wtext, wstyle,			 r.left, r.top, r.right, r.bottom,			 cp->hwnd, (HMENU) wid, hinst, NULL);    SendMessage(ctl, WM_SETFONT, cp->font, MAKELPARAM(TRUE, 0));    return ctl;}