ListIcon Notification Message -121 ?

Windows specific forum
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

ListIcon Notification Message -121 ?

Post by Fluid Byte »

Anyone knows the proper name of this message? It is send when you move the mouse over an ListIcon gadget. I checked all the values of the messages listed in the API docs but none matches the number -121.

Try this to see what I mean:

Code: Select all

OpenWindow(0,0,0,400,300,"untitled",#WS_OVERLAPPEDWINDOW | 1)
CreateGadgetList(WindowID(0))
ListIconGadget(0,5,5,390,290,"Name",350)

Procedure WindowCallback(hWnd.l,uMsg.l,wParam.l,lParam.l)
    If uMsg = #WM_NOTIFY
        *pnmh.NMHDR = lParam

		If *pnmh\hWndFrom = GadgetID(0)	: Debug *pnmh\code	: EndIf
    EndIf
     
    ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure

SetWindowCallback(@WindowCallback())

While WaitWindowEvent() ! 16 : Wend
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

It looks like it is #LVN_HOTTRACK = #LVN_FIRST - 21
Mat
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Weird...

I have Dev-C++ installed and just checked commctrl.h but #LVN_HOTTRACK is not listed! :shock:

Although I think you are right could you tell me where you got the value from?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

It is in the CommCtrl.h that comes with the PSDK.
Mat
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

MrMat wrote:It is in the CommCtrl.h that comes with the PSDK.
LOL! I got the PSDK installed but forgot that it contains also sourcecode besides the help itself.

Well, it's #LVN_HOTTRACK, no doubt. Thanks!
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply