Inside of the function DrawItem(lParam, Msg, Hwnd) it colorize each row according to the user option
Code: Select all
HWND := NumGet(lParam + offHWND, 0, "UPtr")
If OD_Colors.Controls.HasKey(HWND) && ODT.HasKey(NumGet(lParam + 0, 0, "UInt")) {
ODCtrl := OD_Colors.Controls[HWND]
Item := NumGet(lParam + offItem, 0, "Int") + 1
Action := NumGet(lParam + offAction, 0, "UInt")
State := NumGet(lParam + offState, 0, "UInt")
HDC := NumGet(lParam + offDC, 0, "UPtr")
RECT := lParam + offRECT
For example , i click on A it also colorize B and stop as next line is a blank line. Item store the index of the current selected item in the listbox, im having difficult only in how to get the HDC from the next item.
Getting it i think i know how to do all the rest.
The function get the hdc using the lparam received by the onmessage, what other way I could get the hdc of a specific row ?