I'm making a ownerdraw ListBox:
Code:
hListBox = CreateWindowEx(NULL, "LISTBOX", NULL, LBS_HASSTRINGS|LBS_OWNERDRAWFIXED|LBS_NOINTEGRALHEIGHT|LBS_NOTIFY|WS_CHILD|WS_VISIBLE|WS_BORDER, 5, 5, 150, 150, hWndParent, (HMENU)1201, g_hInst, NULL);
I'm attempting to change to color of the border in WM_CREATE
Code:
RECT r;
GetWindowRect(hListBox, &r);
HDC hdc = GetDC(hListBox);
FrameRect(hdc, &r, GetSysColorBrush(COLOR_INFOBK));
ReleaseDC(hListBox, hdc);
Any ideas...?
I try this on my WM_DRAWITEM but no luck