















C'est quoi ce bordel !!

Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
End Select
Procedure Return Resultat
End Procedure
hwnd = OpenWindow (0, 100, 100, 250, 100, #PB_Window_SystemMenu | #PB_Window_ScreenCentered , "Double-cliquez sur la fenêtre")
SetClassLong_(hwnd, #GCL_STYLE , GetClassLong_(hwnd, #GCL_STYLE )| #CS_DBLCLKS )
SetWindowCallback (@WinCallBack())
Repeat
Select WindowEvent ()
Case #PB_Event_CloseWindow : Quit = 1
End Select
Until Quit = 1
End
Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
End Select
Procedure Return Resultat
End Procedure
hwnd = OpenWindow (0, 100, 100, 250, 100, #PB_Window_SystemMenu | #PB_Window_ScreenCentered , "Double-cliquez sur la fenêtre")
;SetClassLong_(hwnd, #GCL_STYLE , GetClassLong_(hwnd, #GCL_STYLE )| #CS_DBLCLKS )
SetWindowCallback (@WinCallBack())
Repeat
Select WindowEvent ()
Case #PB_Event_CloseWindow : Quit = 1
End Select
Until Quit = 1
End
Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
EndSelect
Procedure Return Resultat
color=blue] EndProcedure [/color]
Code : Tout sélectionner
Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
;Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
;Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
EndSelect
ProcedureReturn Resultat
EndProcedure
hwnd = OpenWindow (0, 100, 100, 250, 100, #PB_Window_SystemMenu | #PB_Window_ScreenCentered , "Double-cliquez sur la fenêtre")
;SetClassLong_(hwnd, #GCL_STYLE , GetClassLong_(hwnd, #GCL_STYLE )| #CS_DBLCLKS )
SetWindowCallback (@WinCallBack())
Repeat
Select WindowEvent ()
Case #PB_Event_CloseWindow : Quit = 1
EndSelect
Until Quit = 1
End
Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
; Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
; Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
EndSelect
Procedure Return Resultat
EndProcedure
hhwnd = OpenWindow (0, 100, 100, 250, 100, #PB_Window_SystemMenu | #PB_Window_ScreenCentered , "Double-cliquez sur la fenêtre")
;SetClassLong_(hwnd, #GCL_STYLE , GetClassLong_(hwnd, #GCL_STYLE )| #CS_DBLCLKS )
SSetWindowCallback (@WinCallBack())
Repeat
Select WindowEvent ()
Case #PB_Event_CloseWindow : Quit = 1
EndSelect
Until Quit = 1
End
Procedure WinCallBack(WinID.l, message.l, wParam.l, lParam.l)
Resultat.l = #PB_ProcessPureBasicEvents
Select message
Case #WM_LBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Gauche")
; Case #WM_RBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Droit")
; Case #WM_MBUTTONDBLCLK
SetWindowText_(WinID,"Double clic Milieu")
EndSelect
ProcedureReturn Resultat
EndProcedure
hwnd = OpenWindow (0, 100, 100, 250, 100, #PB_Window_SystemMenu | #PB_Window_ScreenCentered , "Double-cliquez sur la fenêtre")
;SetClassLong_(hwnd, #GCL_STYLE , GetClassLong_(hwnd, #GCL_STYLE )| #CS_DBLCLKS )
SetWindowCallback (@WinCallBack())
Repeat
Select WindowEvent ()
Case #PB_Event_CloseWindow : Quit = 1
EndSelect
Until Quit = 1
End