Date: 02-16-2022
Return to Index
created by gbSnippets
'MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/bb761817%28v=vs.85%29.aspx
'Allows options to draw portions of a control, without having to do a full owner draw.
'The code for Custom Draw is placed in the %WM_Notify / %NM_CustomDraw notification response code.
%NM_CustomDraw Arguments:
lParam = Pointer To NMCustomDraw structure (LV + TB +
wParam = ?
'Works with these controls (these controls send the NM_CustomDraw notification).
button, header, listview, rebar, toolbar, tooltip, trackbar, treeview
'Structures: NMCustomDraw
TYPE NMCUSTOMDRAW
hdr AS NMHDR
dwDrawStage AS DWORD
hdc AS DWORD
rc AS RECT
dwItemSpec AS DWORD ' control specific, how to specify an item. valid only with CDDS_ITEM bit set
uItemState AS DWORD
lItemlParam AS LONG
END TYPE
TYPE NMHDR
hwndFrom AS DWORD
idFrom AS DWORD
CODE AS DWORD
END TYPE
'gbs_01163
'Date: 03-25-2012
http://www.garybeene.com/sw/gbsnippets.htm