// JP opened flex table

Click to See Complete Forum and Search --> : CChecklistbox items


Archana h
December 4th, 2001, 12:12 PM
I have created an owner drawn CChecklistbox as:
((CCheckListBox*)curWidget->control)->Create(LBS_HASSTRINGS | LBS_OWNERDRAWFIXED | LBS_NOTIFY | WS_HSCROLL | WS_VSCROLL | WS_BORDER | WS_TABSTOP, tmpRect, this, ID);

The checklist box has 6 items, only 3 items are visible, to view the other items one has to scroll down using the vertical scroll bar. When I scroll down the checklist box and check (or uncheck) an item, the selection (of an item) in the checklist box shifts. This does not happen when I check (or uncheck) the items without scrolling. How can I avoid this shifting of selection in the checklist box?

//JP added flex table