Solved

45060 = WM_????

Posted on 2001-07-04
8
514 Views
Last Modified: 2008-03-10
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.
0
Comment
Question by:ITugay
  • 3
  • 3
  • 2
8 Comments
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
? listening ...
0
 
LVL 13

Expert Comment

by:Epsylon
Comment Utility
They are probably user defined messages....
0
 
LVL 13

Expert Comment

by:Epsylon
Comment Utility
So in that case it will be:

WM_USER + 44036 and WM_USER + 44039
0
 
LVL 9

Author Comment

by:ITugay
Comment Utility
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
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
can't evaluate, no delphi here,
but delphi defines also user-messages
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
Comment Utility
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/hh/winui/messques_4soi.asp

Talks about a new range starting from WM_APP ($B000=45056) to $BFFF (=49151) that is to be used by applications.
0
 
LVL 9

Author Comment

by:ITugay
Comment Utility
Ok, seems you guide me  on the right way,
thanx :-)
0
 
LVL 9

Author Comment

by:ITugay
Comment Utility
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.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now