Hi siwu,
Very cool start to a cool looking applet. I found an interesting bug though. Here is the recipe:
1) place your Start Menu on the left right or top of the screen.
2) make the start menu doubly wide
3) lock the start menu
4) hit F9 to tile all your active windows
Expected results: windows are tiled in the available desktop space
Actual results: windows get tiled behind the start menu
You can use the following code for the fix (if you wanna fix it
):
RECT deskrc;
if (!SystemParametersInfo( SPI_GETWORKAREA, 0, &deskrc, 0 )
GetDesktopWindow()->GetWindowRect((LPRECT)&deskrc);
SPI_GETWORKAREA will give you the available desktop space, which accounts for the start menu. If this fails for some reason it defaults back to GetDesktopWindow()->GetWindwoRect(...) which is what you are probably using now.
This looks like a great app, can't wait to see what happens with it.
-Nick
Aqua-Soft Forums