How to get a nonclient area rect?
-
I want to paint something outside of the client rect, but how to get that area? Who can help me out? I would like to know if there is a function that returns a CRect. Thanks
-
I want to paint something outside of the client rect, but how to get that area? Who can help me out? I would like to know if there is a function that returns a CRect. Thanks
GetWindowRect returns that. Note that returned rect is in screen coordinates. Tomasz Sowinski -- http://www.shooltz.com
-
GetWindowRect returns that. Note that returned rect is in screen coordinates. Tomasz Sowinski -- http://www.shooltz.com
Thanks, that worked
-
I want to paint something outside of the client rect, but how to get that area? Who can help me out? I would like to know if there is a function that returns a CRect. Thanks
How can I change the size of a Title Bar? I tried changing the CREATESTRUCT of the WM_NCCREATE message, but that didn't work... Thanks in advance
-
WM_NCCALCSIZE ? Tomasz Sowinski -- http://www.shooltz.com
"The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes." - MSDN I know it must be possible, as the size of the Title Bar changes when the dialog is a 'Tool window' Can somebody please help me out? Some source code would be greatly appreciated.
-
How can I change the size of a Title Bar? I tried changing the CREATESTRUCT of the WM_NCCREATE message, but that didn't work... Thanks in advance
WM_NCCALCSIZE ? Tomasz Sowinski -- http://www.shooltz.com
-
"The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes." - MSDN I know it must be possible, as the size of the Title Bar changes when the dialog is a 'Tool window' Can somebody please help me out? Some source code would be greatly appreciated.
So what's the problem? Capture the message and return the client area small or big enough for given titlebar size. Tomasz Sowinski -- http://www.shooltz.com
-
"The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated. By processing this message, an application can control the content of the window's client area when the size or position of the window changes." - MSDN I know it must be possible, as the size of the Title Bar changes when the dialog is a 'Tool window' Can somebody please help me out? Some source code would be greatly appreciated.
See this article for funky nonclient area drawing tricks. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
See this article for funky nonclient area drawing tricks. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
Thanks! That might be what I'm looking for.