Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compile Exe
#Dim All
%Unicode=1
#Include "Win32API.inc"
%IDC_Graphic = 500
Global hDlg As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Graphic Control Test",300,300,120,120, %WS_SysMenu, 0 To hDlg
Control Add Graphic, hDlg, %IDC_Graphic,"", 10,10,100,100, %SS_Notify Or %WS_Border
Graphic Attach hDlg, %IDC_Graphic
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
If Cb.Msg = %WM_Command And Cb.Ctl = %IDC_Graphic And Cb.CtlMsg = %STN_Clicked Then
? "I've been clicked"
End If
End Function
'gbs_01151
'Date: 03-14-2012
http://www.garybeene.com/sw/gbsnippets.htm