Werner Messages: 234 Registered: May 2006 Location: Cologne / Germany
Experienced Member
luzr wrote on Sun, 10 September 2006 14:26
GetClickFocus is wrong item.
Rect Ctrl::GetWorkArea();
It is not exactly screen resultion, but the rectangle of maximized window (in other words, screen resolution minus bottom start/tasklist pane).
Also please note that the window rectangle is specified without any platform specific border areas (so workarea is too big to be set as TopWindow rect).
Mirek
Thank you very much. That was exactly what I was looking for. (I'm working on an application which has to adjust the TopWindow whenever the size of a certain widget changes.) Under Windows XP (without start bar) "GetWorkArea" returns exactly 1280 * 1024, 1024 * 768, 800 * 600, and so on.
May I suggest to honor this function by including it in the documentation? Or did I again fail to read the documentation carefully? After all I couldn't find "GetWorkArea" in the documentation - even using "Find in files ..." (but in various files as soon as I knew what to look for ... ).
Just because I'm curious and like to pester : What is "GetClickFocus" for and how could I intelligently use it?