WPHooker.HookObject .HTTPGridBase, AddressOf WindowProc
lHTTPGridBaseStyle = GetWindowLong(.HTTPGridBase.hwnd, GWL_STYLE)
SetWindowLong .HTTPGridBase.hwnd, GWL_STYLE, lHTTPGridBaseStyle Or LVS_OWNERDRAWFIXED ' Or LVS_SHOWSELALWAYS
Public Function WindowProc(ByVal hwnd As Long, ByVal MsgID As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Select Case hwnd
Case 'вырезано
'вырезано
' ...
'вырезанор
Case FMain.HTTPGridParent.hwnd
Select Case MsgID
Case WM_DRAWITEM
Dim DIInfo As DRAWITEMSTRUCT
Dim FreePoint As POINTAPI
MDeclarations.CopyMemory VarPtr(DIInfo), lParam, Len(DIInfo)
//////////////////////////////////////////////////////////
И вот тут у вас имеется хорошая такая структура DIInfo,
и, в частности, DIInfo.hdc , на котором вы можете рисовать.
////////////////////////////////////////////////////////////
Case Else
WindowProc = CallWindowProc(WPHooker.GetObjectSolidWPA(hwnd), hwnd, MsgID, wParam, lParam)
End Select
Case FMain.HTTPGridBase.hwnd
' Вырезано, много, всякого
Case HTTPGridBaseHDRHandle
' Вырезано, много, всякого
End Select
End Function
Сейчас этот форум просматривают: AhrefsBot, Google-бот, Yandex-бот и гости: 68