Modeless Dialog
-
Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)
-
Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)
The second argument is the parent window (in your case, probably the main dialog). It's hard to know what's going wrong with your app. Remember that modeless dialogs must be created on the heap (i.e. with
new CYourDialog
) or defined as members of the parent window, and never be defined as local variables inside a funtion. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
Hi, I am using a Dialog based application, When the Main dilaog is displayed i want to create another dialog(modeless dilaog), i used the CDilag::create function but it's not working, i think i have a problem with the second urgument(CWnd*) what do i missing here?? and what do i have to write in the second urgument??? Thanks ;)
meirav wrote: i used the CDilag::create function but it's not working, You need to make sure that you call CWnd::ShowWindow( SW_SHOW ) after creation of the non-modal dialog; either in the non-modal dialog's constructor, or directly, after creation. Peace! -=- James.