Systray event

Windows specific forum
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Systray event

Post by Flype »

Using systray event is quite easy thanx these stuff : WaitWindowEvent() and #PB_Event_SysTray.

But how can i intercept systray events inside the WindowCallback procedure ?

With the help of the debugger i found something and i do it this way :

Code: Select all

Procedure WindowCB( hWnd.l, Message.l, wParam.l, lParam.l )

  Result.l = #PB_ProcessPureBasicEvents
  
  Select Message
  
    Case $30D6 ; systray event
    
      Select LoWord( lParam )
        Case #WM_LBUTTONDBLCLK  ; ldblclick  
        Case #WM_RBUTTONDOWN   ; rmb
      EndSelect
      
  EndSelect
  
  ProcedureReturn Result 

EndProcedure
Some questions :
Which constante is attached to this value : $30D6 ?
Why this value is different from the #PB_Event_SysTray value ?
#PB_Event_SysTray value is $332E, and i can't see it in Win32 API docs.
So are systray events privates, chosen by Fred ?

Well, to be short, my "Case $30D6" works for now but can i rely on :roll: ?
thanx
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

so, nobody knows :cry: :cry: :cry: :cry:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply