"Jonathan Wilson" jonwil@tpgi.com.au wrote:
A possibility that status bar will change its size behind your back justifies the use of GetWindowRect.
ok, good point. I intend to change it to use GetWindowRect. But I am going to keep the WM_SIZE stuff in there unless someone can show a reason why its a bad idea.
WM_SIZE is usually sent due to a change in the window size in order to notify window and allow it to do some necessary job. Sending a bogus WM_SIZE might easily mess the thing up since the size you are sending might be not a real window size.