Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
#Include "Win32API.inc"
Global hDlg, hAbout As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Test Code",300,300,200,200, %WS_OverlappedWindow To hDlg
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Select Case Cb.Msg
Case %WM_InitDialog
Dialog New Pixels, 0, "About gbSnippets", 100, 100, 280, 175, %WS_SysMenu Or %WS_Caption To hAbout
Dialog Show Modeless hAbout Call AboutProc
Case %WM_SetCursor
Static iCount As Long
Incr iCount
Dialog Set Text hDlg, Str$(iCount)
End Select
End Function
CallBack Function AboutProc() As Long
Select Case Cb.Msg
Case %WM_NCActivate
If IsFalse(Cb.WParam) Then Function = 1
End Select
End Function
'gbs_00744
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm