Keeping a dialog on top
-
Boy I feel dumb today. I know I have seen an article on here that tells me how to keep a dialog as the top window, but I can't seem to find it through the search engin or my manual search. If someone could be so kind and point me to a good arctile I would be very grateful. Here's to bad days. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************
-
Boy I feel dumb today. I know I have seen an article on here that tells me how to keep a dialog as the top window, but I can't seem to find it through the search engin or my manual search. If someone could be so kind and point me to a good arctile I would be very grateful. Here's to bad days. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************
Check this...
::SetWindowPos(hwndDlg, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
... or, if you're MFC type, this:
dlg.SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans? -
Boy I feel dumb today. I know I have seen an article on here that tells me how to keep a dialog as the top window, but I can't seem to find it through the search engin or my manual search. If someone could be so kind and point me to a good arctile I would be very grateful. Here's to bad days. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************
::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
Jeremy Falcon Imputek "..." - Paul Watson 07-17
-
Check this...
::SetWindowPos(hwndDlg, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
... or, if you're MFC type, this:
dlg.SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans?you da man!!:cool: Thank you much, that did it, now I have to do some positioning and I should be good. Thanks again. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************