Link to home
Start Free TrialLog in
Avatar of Igor UL7AAjr
Igor UL7AAjrFlag for Kazakhstan

asked on

45060 = WM_????

Hi all,
does somebody know what is the analog for integer value 45060 and 45063 in windows mnemonic WM_SOMETHING?

procedure TMyComp.WndProc(var M: TMessage);
begin
  if M.Msg = 45060 then  // if M.Msg = WM_????? then
  begin
     //.....
  end;
  Inherited;
end;

-----
Igor.
Avatar of kretzschmar
kretzschmar
Flag of Germany image

? listening ...
Avatar of Epsylon
Epsylon

They are probably user defined messages....
So in that case it will be:

WM_USER + 44036 and WM_USER + 44039
Avatar of Igor UL7AAjr

ASKER

hi meikl :-)
hi epsilon :-)

building a component (and monitoring messages coming to WndProc) I found some usefull for me messages. It something like non-client mouse click. May be it defined somewhere in Delphi?

------
Igor
can't evaluate, no delphi here,
but delphi defines also user-messages
ASKER CERTIFIED SOLUTION
Avatar of Epsylon
Epsylon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, seems you guide me  on the right way,
thanx :-)
hi,
just some info.

here is what I did with the 45060 message.
Sample shows how to hide component when user clicks on empty area of a form (or even on  title of the form) or any other component. NT4 and W95 tested.

It works in case of standalone component (windows.SetParent(Handle,0)) , something like DropDownList of combobox or popup menu. Time to time this question apears on EE. Seems now it can be solved by easy way :-)

procedure TMyComp.WndProc(var M: TMessage);
begin
  if M.Msg = WM_LBUTTONDOWN then
    FLastClick := GetTickCount;

  if (M.Msg = 45060) and
    (FLastClick + 100 < GetTickCount) then
      Hide;

  Inherited;
end;


------
Igor.