08-04-2007, 08:59 AM
im not sure how to make onclick and onrclick functions.
how do i make mac (t.__m_onrclick) into a function ?
TrayWndProc:
code im compiling
----------------------------------------------------------------------------------
TEST_TTRY:
----------------------------------------------------------------------------------
how do i make mac (t.__m_onrclick) into a function ?
TrayWndProc:
;/
function# hWnd message wParam lParam
Tray& t
sel message
,case WM_USER+101
,&t=+wParam
,int mod=GetMod
,if(t.__m_func) call t.__m_func wParam lParam
,else if(lParam=WM_LBUTTONUP and mod=2) shutdown -7
,sel lParam
,,case WM_LBUTTONUP if(t.__m_onclick.len and !mod) mac t.__m_onclick; err
,,case WM_RBUTTONUP if(t.__m_onrclick.len and !mod) mac t.__m_onrclick; err
,ret
,
,case else
,if(message=__newtaskbar)
,,&t=+GetWindowLong(hWnd GWL_USERDATA)
,,if(&t) t.AddIcon("" "" 8)
ret DefWindowProc(hWnd message wParam lParam)
code im compiling
----------------------------------------------------------------------------------
TEST_TTRY:
----------------------------------------------------------------------------------