Keeping Window On Top
-
I have this code snippet used to keep the window on the top.
// Make this window stay on top, so it never leaves opertor's view. SetWindowPos( &wndTopMost, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW );
The problem is that is starts minimized...how can I ensure this window starts visible?
There are only 10 types of people in this world....those that understand binary, and those that do not.
-
I have this code snippet used to keep the window on the top.
// Make this window stay on top, so it never leaves opertor's view. SetWindowPos( &wndTopMost, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW );
The problem is that is starts minimized...how can I ensure this window starts visible?
There are only 10 types of people in this world....those that understand binary, and those that do not.
KingTermite wrote: The problem is that is starts minimized...how can I ensure this window starts visible? So which is it, a window that starts non-minimized, one that is visible, or both?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
KingTermite wrote: The problem is that is starts minimized...how can I ensure this window starts visible? So which is it, a window that starts non-minimized, one that is visible, or both?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Sorry...I guess I did make that a bit unclear. I didn't mean the window wasn't visible, just minimized. I want it to start non-minimized.
There are only 10 types of people in this world....those that understand binary, and those that do not.
-
Sorry...I guess I did make that a bit unclear. I didn't mean the window wasn't visible, just minimized. I want it to start non-minimized.
There are only 10 types of people in this world....those that understand binary, and those that do not.
Is it an SDI/MDI app, or a dialog-based app?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Is it an SDI/MDI app, or a dialog-based app?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Dialog.
There are only 10 types of people in this world....those that understand binary, and those that do not.
-
Dialog.
There are only 10 types of people in this world....those that understand binary, and those that do not.
Are you making any calls to
ShowWindow()
, or does the dialog template have theWS_MINIMIZE
style?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen