at what stage, or during which message, does the client rectangle become available? ie, when can you call GetClientRect() for the first time?
at what stage, or during which message, does the client rectangle become available? ie, when can you call GetClientRect() for the first time?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Not 100% but after WM_CREATE as this is msg is sent after the windows client area has been created but before it is shown on screen.
If you want to manipulate the client area before it is shown try
AdjustWindowRectEx()
to create a window with the desired client rect size (before the window is created or displayed).
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill