Done. I have replied to the post with an example.Konne wrote:Uhh, works with Vista.
Anyways srod can you help me with this question?
http://www.purebasic.fr/english/viewtop ... 24cd240e5d

Done. I have replied to the post with an example.Konne wrote:Uhh, works with Vista.
Anyways srod can you help me with this question?
http://www.purebasic.fr/english/viewtop ... 24cd240e5d
Code: Select all
Case #PB_Event_GadgetDrop, #PB_Event_WindowDrop
;Now call default procedure.
text$="EVENT_oldproc"
result2 = GetProp_(hwnd, @text$)
If result2
result= CallWindowProc_(GetProp_(hwnd, @text$), hWnd, uMsg, wParam, lParam)
EndIf
If result
result = CallWindowProc_(result, hWnd, uMsg, wParam, lParam)
Else
Debug("Zero returned!!! On WindowsMe => crash!")
EndIf
If uMsg = #PB_Event_WindowDrop
sender\hWnd = WindowID(wParam)
Else
sender\hWnd = GadgetID(wParam)
EndIf
pt\x = DesktopMouseX() : pt\y = DesktopMouseY()
MapWindowPoints_(0, sender\hWnd, pt, 1)
sender\mousex = pt\x
sender\mousey = pt\y
sender\button = #Event_LeftButton
sender\message = #OnDropItem
sender\item = EVENT_globals\gDragFrom
EventCallHandler(@sender,result, @mesent)
ProcedureReturn result
Code: Select all
If result
result = CallWindowProc_(result, hWnd, uMsg, wParam, lParam)
Else
Debug("Zero returned!!! On WindowsMe => crash!")
EndIf
Code: Select all
If result
result = CallWindowProc_(result, hWnd, uMsg, wParam, lParam)
Else
Debug("Zero returned!!! On WindowsMe => crash!")
EndIf