Page 1 of 1

ListIcon Notification Message -121 ?

Posted: Sun Oct 22, 2006 5:16 pm
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

Posted: Sun Oct 22, 2006 6:20 pm
by MrMat
It looks like it is #LVN_HOTTRACK = #LVN_FIRST - 21

Posted: Sun Oct 22, 2006 6:36 pm
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?

Posted: Sun Oct 22, 2006 6:51 pm
by MrMat
It is in the CommCtrl.h that comes with the PSDK.

Posted: Sun Oct 22, 2006 7:56 pm
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!