Link to home
Start Free TrialLog in
Avatar of scooley
scooley

asked on

Owner-draw listbox problem...

I am trying to figure out how to set the ODS_DISABLED style on an item in my owner-draw listbox so that when I get a WM_DRAWITEM the ODS_DISABLED flag is set in DRAWITEMSTRUCT.itemState

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Answers2000
Answers2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scooley
scooley

ASKER

I figured this is the answer I would recieve... I have actually already implemented this by subclassing the standard listbox control and setting the item data to a point to a struct, the struct contains two items, my dword flags for drawing, and a void* for the items data (LB_SETITEMDATA).

Thanks anyway!
-Shaun