Date: 02-16-2022
Return to Index
created by gbSnippets
'Verify which controls send WM_DrawItem
#Compile Exe
#Dim All
%Unicode=1
#Include "Win32API.inc"
Global hDlg As Dword
Function PBMain() As Long
Dialog New Pixels, 0, "Test Code",300,300,200,200, %WS_OverlappedWindow To hDlg
Control Add ComboBox, hDlg, 101, , 10,10,10,10
'Control Add Graphic, hDlg, 102, "", 10,10,10,10
'Control Add Image, hDlg, 103, "", 10,10,10,10
'Control Add ImageX, hDlg, 104, "", 10,10,10,10
'Control Add Label, hDlg, 105, "", 10,10,10,10
'Control Add Line, hDlg, 106, "", 10,10,10,10
'Control Add ListBox, hDlg, 107, , 10,10,10,10
'Control Add Progressbar, hDlg, 108, "", 10,10,10,10
'Control Add ScrollBar, hDlg, 109, "", 10,10,10,10
'Control Add Button, hDlg, 110, "", 10,10,10,10
'Control Add Check3State, hDlg, 111, "", 10,10,10,10
'Control Add CheckBox, hDlg, 112, "", 10,10,10,10
'Control Add Frame, hDlg, 113, "", 10,10,10,10
'Control Add ImgButton, hDlg, 114, "", 10,10,10,10
'Control Add ImgButtonX, hDlg, 115, "", 10,10,10,10
'Control Add ListView, hDlg, 116, "", 10,10,10,10
'Control Add Option, hDlg, 117, "", 10,10,10,10
'Control Add Statusbar, hDlg, 118, "", 10,10,10,10
'Control Add Tab, hDlg, 119, "", 10,10,10,10
'Control Add Toolbar, hDlg, 120, "", 10,10,10,10
'Control Add Treeview, hDlg, 121, "", 10,10,10,10
Dialog Show Modal hDlg Call DlgProc
End Function
CallBack Function DlgProc() As Long
Select Case Cb.Msg
Case %WM_DrawItem
Dialog Set Text hDlg, "WM_DrawItem Received"
Case %WM_Command
Select Case Cb.Ctl
Case 100
End Select
End Select
End Function
'gbs_01164
'Date: 03-25-2012
http://www.garybeene.com/sw/gbsnippets.htm