Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compile Exe
#Dim All
%Unicode=1
#Include "Win32API.inc"
Global hDlg As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Draw on Dialog",300,300,200,100, %WS_OverlappedWindow To hDlg
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Local PS As PaintStruct, hDC As Dword
Select Case Cb.Msg
Case %WM_Paint
'draw on dialog
hDC = BeginPaint(hDlg, PS)
Rectangle hDC, 10,40,200,45
Rectangle hDC, 60,10,65,80
EndPaint hDlg, PS
End Select
End Function
'gbs_00127
'Date: 03-14-2012
http://www.garybeene.com/sw/gbsnippets.htm