Click here to Skip to main content
15,877,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change a alignment of CStatic Label at run time? Pin
Le@rner12-Jan-16 18:23
Le@rner12-Jan-16 18:23 
GeneralRe: How to change a alignment of CStatic Label at run time? Pin
Richard MacCutchan12-Jan-16 21:20
mveRichard MacCutchan12-Jan-16 21:20 
QuestionHow to determine whether the disk is bitlocker? Pin
AnsiliWork8-Jan-16 19:29
AnsiliWork8-Jan-16 19:29 
AnswerRe: How to determine whether the disk is bitlocker? Pin
Richard MacCutchan8-Jan-16 22:51
mveRichard MacCutchan8-Jan-16 22:51 
QuestionObject Data lost when dialog is moved 'off screen Pin
Member 122530108-Jan-16 12:24
Member 122530108-Jan-16 12:24 
AnswerRe: Object Data lost when dialog is moved 'off screen Pin
Richard Andrew x648-Jan-16 15:34
professionalRichard Andrew x648-Jan-16 15:34 
GeneralRe: Object Data lost when dialog is moved 'off screen Pin
Member 1225301011-Jan-16 5:45
Member 1225301011-Jan-16 5:45 
QuestionHow to analyze what time Windows 7(XP) once run any program? Pin
AnsiliWork7-Jan-16 14:55
AnsiliWork7-Jan-16 14:55 
SuggestionRe: How to analyze what time Windows 7(XP) once run any program? Pin
Richard MacCutchan7-Jan-16 22:08
mveRichard MacCutchan7-Jan-16 22:08 
GeneralRe: How to analyze what time Windows 7(XP) once run any program? Pin
AnsiliWork8-Jan-16 19:32
AnsiliWork8-Jan-16 19:32 
QuestionRe: How to analyze what time Windows 7(XP) once run any program? Pin
David Crow8-Jan-16 11:56
David Crow8-Jan-16 11:56 
AnswerRe: How to analyze what time Windows 7(XP) once run any program? Pin
AnsiliWork8-Jan-16 20:31
AnsiliWork8-Jan-16 20:31 
QuestionStrange CListBox Behavior Pin
wdolson7-Jan-16 14:44
wdolson7-Jan-16 14:44 
GeneralRe: Strange CListBox Behavior Pin
Richard MacCutchan7-Jan-16 22:07
mveRichard MacCutchan7-Jan-16 22:07 
GeneralRe: Strange CListBox Behavior Pin
Jochen Arndt7-Jan-16 22:18
professionalJochen Arndt7-Jan-16 22:18 
SuggestionRe: Strange CListBox Behavior Pin
Jochen Arndt7-Jan-16 22:17
professionalJochen Arndt7-Jan-16 22:17 
GeneralRe: Strange CListBox Behavior Pin
wdolson7-Jan-16 22:42
wdolson7-Jan-16 22:42 
GeneralRe: Strange CListBox Behavior Pin
Richard MacCutchan7-Jan-16 22:51
mveRichard MacCutchan7-Jan-16 22:51 
AnswerRe: Strange CListBox Behavior Pin
wdolson7-Jan-16 23:09
wdolson7-Jan-16 23:09 
GeneralRe: Strange CListBox Behavior Pin
Jochen Arndt7-Jan-16 23:11
professionalJochen Arndt7-Jan-16 23:11 
You may debug your application and inspect all list items (index, string, value); optionally also using TRACE statements.

But you should also show the code used to add items to the right list box because the source may be there (I guess that it is empty upon program start).

When the list box has sorting enabled, the order of items shown on screen does not correspond to the indexes. So when adding an item, it should look like:
int ndx = m_lstRight.AddString(strItem);
m_lstRight.SetItemData(ndx, val);

GeneralRe: Strange CListBox Behavior Pin
wdolson7-Jan-16 23:18
wdolson7-Jan-16 23:18 
GeneralRe: Strange CListBox Behavior Pin
Jochen Arndt7-Jan-16 23:26
professionalJochen Arndt7-Jan-16 23:26 
GeneralRe: Strange CListBox Behavior Pin
wdolson7-Jan-16 23:33
wdolson7-Jan-16 23:33 
GeneralRe: Strange CListBox Behavior Pin
Jochen Arndt7-Jan-16 23:42
professionalJochen Arndt7-Jan-16 23:42 
GeneralRe: Strange CListBox Behavior Pin
Richard MacCutchan8-Jan-16 1:04
mveRichard MacCutchan8-Jan-16 1:04 

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.