Re: Can you force a modal dialog to be topmost?
"Angus Comber" <angus-v2qo0/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <A3E306FCE4BF4C0EBE42565AD4416A35@angusnotebook> |
I found one easy way to achieve what I want. Simply check the system modal and set foreground checkboxes in the dialog resource. I don't see any problems with this approach so fixed. ----- Original Message ----- From: Angus Comber To: [email protected] Sent: Sunday, October 25, 2009 6:00 PM Subject: [wtl] Can you force a modal dialog to be topmost? Hello I am creating a modal dialog. eg: CLoginDlg dlg; if (dlg.DoModal() == IDOK) ... In the OnInitDialog in CLoginDlg I am doing this: SetWindowPos(HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE); Which does return TRUE. But it is not topmost. Can I somehow make this dialog window topmost? If so, how? Angus [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/