Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 May : IsIconic
| Subject: | IsIconic |
| Posted by: | "Michael" (mik..@justdata.com.au) |
| Date: | Sun, 11 May 2008 09:26:56 |
Hi,
I am running CodeGearT Delphi® for Win32® Version 11.0.2709.7128 on XP.
Maybe I am doing something wrong but the IsIconic function does not seem to
be working.
In my main form I
1. RegisterWindowsMessage(WM_MYMESSAGE) and
2. Have a function that looks for that same message, i.e. -
procedure .......
begin
if Msg.message = WM_MYMESSAGE then
begin
if IsIconic(Application.Handle) then
Application.Restore;
end;
end;
I run the app then minimize it (click the "-" in top-right corner) to the
task bar.
In a second app I register the same message then post a message.
The first app should restore (from my understanding) but it doesn't. I know
the 1st app gets the message because I put a simple ShowMessage('I got it')
in the function which I did see and respond to.
I know the first app doesn't restore because the IsIconic function returns
False. Why is this or more importantly what am I doing wrong.
Thanks,
Michael.