Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Oct : checking if a window is minimized or not
| Subject: | checking if a window is minimized or not |
| Posted by: | "András Lukács" (lukacsandr..@aol.com) |
| Date: | Tue, 24 Oct 2006 13:18:17 |
Hi Everyone,
I want to know if a window is minimized and I go about it by checking if
the form's WindowState property is wsMinimized. The only problem is it
always says it's wsNormal, even when the window is minimized (by
clicking on the Minimize button in the top right corner).
GetWindowPlacement() returns the same, too. Is the only way to really
find out catching a WS_SYSCOMMAND message and looking for
SC_MINIMIZE/_MAXIMIZE/_RESTORE in WParam, and store it for later use?
All this happens on Win98/D7. The project will run under XP, but I'm
confined to 98 right now.
Thanks,
Andrew