Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prevent dialog from being minimised
#1
Hello, I have a created macro with a dialog that clicks areas on the screen. It works as intended however when it clicks the screen, the dialog is minimised. How can I keep the dialog in the foreground and always visible? I looked at the styles available in the dialog editor but was unsure.

Many thanks.
#2
see Zorder HWND_TOPMOST or ont
S
#3
Quote:see Zorder HWND_TOPMOST or ont

Perfect. Thank you!
#4
you wrote minimized but I guessed you meant just covered up by other app windows. 
If your dlg is indeed getting minimized for some reason, look at max/min/res functions. They not only set the state for a given window (your own dialog or others) but can be used to test whether a given window is in that state.
S
#5
can also set dialog style to WS_EX_TOPMOST in dialog editor
#6
that is elegant. Don't know why I never did that. I usually just cram all that stuff in WM_INITDIALOG
S
#7
Quote:can also set dialog style to WS_EX_TOPMOST in dialog editor
Thank you all for your suggestions. This is exactly how I fixed the issue and it works great!


Forum Jump:


Users browsing this thread: 2 Guest(s)