in an application I have the following window arrangement: The
application's main window is a modal dialog and there is a modeless
dialog that has that modal dialog as parent.
Now I want to be able to tab between the controls on the modeless
dialog.
But that does not work.
To solve that problem I tried to create the modeless dialog in a
separate thread with its own message loop. But the dialog seems always
to be created within the main dialog's thread. So I took the dialogs
creation back to the main dialogs thread and removed the message loop.
Can anybody tell me what I am doing wrong? Thanks in advance
Markus
;)
--------------------------------------------------
You need WS_EX_CONTROLPARENT style in the parent dialog.
--
Scott McPhillips [VC++ MVP]
the WS_EX_CONTROLPARENT style is set.
The parent's style flags are:
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_VSCROLL |
WS_SYSMENU
EXSTYLE WS_EX_CONTROLPARENT
The client style is set as follows:
STYLE DS_CONTROL | WS_CHILD | WS_VISIBLE | WS_BORDER
EXSTYLE WS_EX_CLIENTEDGE
Is there anything else I have to set?
Thanks
Markus