Regarding Modeless dialog
-
Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye
-
Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye
-
on WM_DESTROY of your modeless dialog set the focus to the desktop window... Hope this helps you, Greetz, Davy
My application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx
-
on WM_DESTROY of your modeless dialog set the focus to the desktop window... Hope this helps you, Greetz, Davy
uueeMy application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx
-
uueeMy application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop? Thanx
-
I think this should set the focus to the main window of your app... ::SetFocus(AfxGetMainWnd()->m_hWnd); Greetz, Davy
sorry Davy. . .Its not working. I tried it by placing the ::SetFocus(AfxGetMainWnd()->m_hWnd)func in the OnDestroy()func of child.But its not working. Do u have any other idea. Thanx
-
Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye
Hi, Try using SetWindowPos. Have a look @ msdn. i think it is having some same source related to it Sujan
-
Hai Frens I am facing a prblm with modeless dialog. I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled. What i want is the parent should get enabled automatically if i close the child. . . Could any body help me to get it out this prblm. . . thanx bye