How to disable minimzing?
-
Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.
-
Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.
-
If you want your dialog to stay on top all the time, check out SetWindowPos()[^], and pass
&this->wndTopMost
to the function.Thanks for reply, my dialog must be at the bottom of the Z order. I have dialog with text and the bg of the dialog is transparent.So it looks like the text is written directly on the desktop(but it isn't). The problem is when I hit win. key+D so the dialog is minimized. I know, it can be done using of windows hooks. I want to avoid of that(if it's possible).
-
Hello gentlemen, Is there any option to disable/prevent window minimizing when I press window key(between Ctrl and Alt) + D? I have one dialog without tile with transparent backgroud, I don't use MFC. I am capturing these windows messages case WM_WINDOWPOSCHANGING: return true; break; case WM_WINDOWPOSCHANGED: return true; break; case WM_SIZE: if(wParam == SIZE_MINIMIZED) { return true; } break; Thank you.
daavena wrote:
I am capturing these windows messages
Have you verified with Spy++ that you are handling the correct message(s)?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Thanks for reply, my dialog must be at the bottom of the Z order. I have dialog with text and the bg of the dialog is transparent.So it looks like the text is written directly on the desktop(but it isn't). The problem is when I hit win. key+D so the dialog is minimized. I know, it can be done using of windows hooks. I want to avoid of that(if it's possible).
Win+D does not mean minimize. It means show desktop. Win+M is minimize.
«_Superman_» I love work. It gives me something to do between weekends.
-
daavena wrote:
I am capturing these windows messages
Have you verified with Spy++ that you are handling the correct message(s)?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons