-
September 18th, 2007, 09:19 AM
#1
Is there any way to Raise WM_NCCALCSIZE message?
Is there any way to Raise WM_NCCALCSIZE message? I mean to force the window to recalculate its client area. Send what message to do that?Thanks.
-
September 18th, 2007, 09:35 AM
#2
Re: Is there any way to Raise WM_NCCALCSIZE message?
You can send it yourself . . .
-
September 18th, 2007, 11:45 AM
#3
Re: Is there any way to Raise WM_NCCALCSIZE message?
 Originally Posted by Skizmo
You can send it yourself . . .
Hm.. no good. WM_NCCALCSIZE is something that windows sends and then windows does the rest of the job. So, if windows is not the one sending it, it would not do anything. Your window will simply handle it and nothing comes out of it.
Anyways, a little poking around the APIs listed under See Also for WM_NCCALCSIZE would have revealed that there are some APIs that trigger this message.
Why don't people read documentation anymore
-
February 19th, 2025, 06:31 AM
#4
Re: Is there any way to Raise WM_NCCALCSIZE message?
So to close the thread the answer seems to be, after reading @kirants reply who for some reason concealed his answer in a shroud of mystery, you use SetWindowPos with flag SWP_FRAMECHANGED that will trigger WM_NCCALCSIZE even when the size of the window hasn't changed. Tested it in my case and it works as expected.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|