Mercurial > dwindows
diff win/dw.c @ 522:29547598b909
For whatever reason the new WS_EX_MDICHILD method is not working properly,
the MDI child windows won't take focus. But the old SetParent() method
seems to work properly, so reverting to the old code for now.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 16 Mar 2004 08:23:04 +0000 |
parents | caa7ed17c132 |
children | d3ce0afa6cf5 |
line wrap: on
line diff
--- a/win/dw.c Tue Mar 16 07:25:35 2004 +0000 +++ b/win/dw.c Tue Mar 16 08:23:04 2004 +0000 @@ -3775,8 +3775,15 @@ newbox->count = 0; newbox->cinfo.fore = newbox->cinfo.back = -1; + /* Hmm, the "correct" way doesn't seem to be + * working, but the old hackish SetParent() + * at the bottom seems to work, so I'll leave + * it like this for now. + */ +#if 0 if(hwndOwner) flStyleEx |= WS_EX_MDICHILD; +#endif if(!(flStyle & WS_CAPTION)) flStyle |= WS_POPUPWINDOW; @@ -3797,10 +3804,8 @@ } SetWindowLongPtr(hwndframe, GWLP_USERDATA, (LONG_PTR)newbox); -#if 0 if(hwndOwner) SetParent(hwndframe, hwndOwner); -#endif return hwndframe; }