Click here to Skip to main content
15,896,727 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Send Mail Pin
David Crow30-Jan-10 12:15
David Crow30-Jan-10 12:15 
QuestionListBox redrawing Pin
Rock Bottom29-Jan-10 6:13
Rock Bottom29-Jan-10 6:13 
AnswerRe: ListBox redrawing Pin
LunaticFringe29-Jan-10 8:54
LunaticFringe29-Jan-10 8:54 
GeneralRe: ListBox redrawing Pin
Rock Bottom29-Jan-10 8:57
Rock Bottom29-Jan-10 8:57 
GeneralRe: ListBox redrawing Pin
LunaticFringe29-Jan-10 9:32
LunaticFringe29-Jan-10 9:32 
GeneralRe: ListBox redrawing Pin
Rock Bottom29-Jan-10 9:59
Rock Bottom29-Jan-10 9:59 
AnswerRe: ListBox redrawing Pin
David Crow30-Jan-10 5:26
David Crow30-Jan-10 5:26 
GeneralRe: ListBox redrawing Pin
Rock Bottom1-Feb-10 5:55
Rock Bottom1-Feb-10 5:55 
Upon further investigation, it turns out that the child control is receiving messages asking it to traverse through all the lines in the selected item. For each of the lines, it receives the following itemAction and itemState (in this order):

1. ODA_SELECT with ODS_SELECTED
2. ODA_FOCUS with ODS_DEFAULT | ODS_SELECTED
3. ODA_FOCUS with ODS_SELECTED
4. ODA_SELECT with 0

Unfortunately, events 1 and 4 cause the program to select/deselect all the rows in the multi-row item, which results in huge flickering. Fortunately, our redraw function does nothing on events 2 and 3 Poke tongue | ;-P . So right now, my question is:

1. Is this traversing of all the items something that was implemented in the TListBox base class or are we telling it to do that somewhere in our code?
2. Also, is it better to override this traversing to do one big redraw or to override the handling to only select, deselect, then re-select each row?
QuestioncapPreview() slow problem... Pin
Aric Wang29-Jan-10 5:24
Aric Wang29-Jan-10 5:24 
AnswerRe: capPreview() slow problem... Pin
Richard MacCutchan29-Jan-10 6:22
mveRichard MacCutchan29-Jan-10 6:22 
GeneralRe: capPreview() slow problem... Pin
Aric Wang29-Jan-10 6:48
Aric Wang29-Jan-10 6:48 
GeneralRe: capPreview() slow problem... Pin
Richard MacCutchan29-Jan-10 9:17
mveRichard MacCutchan29-Jan-10 9:17 
GeneralRe: capPreview() slow problem... [modified] Pin
Aric Wang29-Jan-10 16:10
Aric Wang29-Jan-10 16:10 
AnswerRe: capPreview() slow problem... Pin
Chris Meech29-Jan-10 6:33
Chris Meech29-Jan-10 6:33 
GeneralRe: capPreview() slow problem... Pin
Aric Wang29-Jan-10 6:45
Aric Wang29-Jan-10 6:45 
AnswerRe: capPreview() slow problem... Pin
Saurabh.Garg30-Jan-10 19:03
Saurabh.Garg30-Jan-10 19:03 
GeneralRe: capPreview() slow problem... Pin
Aric Wang31-Jan-10 1:57
Aric Wang31-Jan-10 1:57 
QuestionCombo box - Dropdown height? Pin
dipuks29-Jan-10 2:00
dipuks29-Jan-10 2:00 
AnswerRe: Combo box - Dropdown height? Pin
Rajesh R Subramanian29-Jan-10 2:03
professionalRajesh R Subramanian29-Jan-10 2:03 
AnswerRe: Combo box - Dropdown height? Pin
Cedric Moonen29-Jan-10 2:05
Cedric Moonen29-Jan-10 2:05 
GeneralRe: Combo box - Dropdown height? Pin
dipuks29-Jan-10 7:00
dipuks29-Jan-10 7:00 
GeneralRe: Combo box - Dropdown height? Pin
Cedric Moonen29-Jan-10 7:29
Cedric Moonen29-Jan-10 7:29 
GeneralRe: Combo box - Dropdown height? Pin
dipuks29-Jan-10 8:05
dipuks29-Jan-10 8:05 
GeneralRe: Combo box - Dropdown height? Pin
Cedric Moonen30-Jan-10 3:49
Cedric Moonen30-Jan-10 3:49 
Question#if defined ONE && TWO how to pass two defines at the same time Pin
Chesnokov Yuriy29-Jan-10 0:30
professionalChesnokov Yuriy29-Jan-10 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.