Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Pin
AbhiHcl1-Sep-10 23:32
AbhiHcl1-Sep-10 23:32 
AnswerRe: CListCtrl Pin
AbhiHcl2-Sep-10 0:20
AbhiHcl2-Sep-10 0:20 
AnswerRe: CListCtrl Pin
David Crow2-Sep-10 4:04
David Crow2-Sep-10 4:04 
AnswerRe: CListCtrl Pin
Niklas L2-Sep-10 11:50
Niklas L2-Sep-10 11:50 
GeneralRe: CListCtrl Pin
AbhiHcl2-Sep-10 20:03
AbhiHcl2-Sep-10 20:03 
QuestionStrange behavior of AfxGetMainWnd()!!! Pin
VCSharp0071-Sep-10 21:09
VCSharp0071-Sep-10 21:09 
QuestionFix for SQL Error 16943? Pin
Sathish Guru1-Sep-10 19:15
Sathish Guru1-Sep-10 19:15 
Questioncombobox selection problem - stuck, wrong, etc. Pin
permutations1-Sep-10 17:57
permutations1-Sep-10 17:57 
I really hope someone can offer some suggestions on this because I'm going bonkers here. I've spent days trying to hunt down this problem and I can't find it.

I have two combo boxes that are populated from atlas data. The first is a list of US states and countries. Once that selection is made, the second combo box is populated with a list of the cities in the selected state or country.

The code for the two is line-for-line identical - or as identical as it can be except for adding different strings. The combo box styles are identical, the event handling is identical. But one works (the state/country selection) and one has problems (the city selection).

In the state/country combo box, you can press the down arrow and move through the items. In the city combo box, the selection won't move with the arrow - or rather, it appears not to move. If you accept a selection and close the dialog, you find that the selection actually did change. You only can move one position with the arrow, and only the first time you try it. After that it appears stuck.

Also, when you make a selection with the mouse in the city combo box, you don't get what you select. You get a selection a few items off. The mouse selection works fine in the state/country combo box.

I have been over this code a million times and I can't see why one works and the other does not. Does anyone have any idea what the problem might be?

Thanks in advance.
AnswerRe: combobox selection problem - stuck, wrong, etc. Pin
Peter_in_27801-Sep-10 19:30
professionalPeter_in_27801-Sep-10 19:30 
GeneralRe: combobox selection problem - stuck, wrong, etc. Pin
permutations2-Sep-10 2:41
permutations2-Sep-10 2:41 
GeneralRe: combobox selection problem - stuck, wrong, etc. Pin
permutations2-Sep-10 5:18
permutations2-Sep-10 5:18 
QuestionVS2010 Application Wizard Pin
Roger651-Sep-10 12:08
Roger651-Sep-10 12:08 
AnswerRe: VS2010 Application Wizard Pin
Niklas L2-Sep-10 12:00
Niklas L2-Sep-10 12:00 
QuestionLNK 2001 Pin
T.RATHA KRISHNAN1-Sep-10 3:16
T.RATHA KRISHNAN1-Sep-10 3:16 
AnswerRe: LNK 2001 Pin
Cedric Moonen1-Sep-10 3:20
Cedric Moonen1-Sep-10 3:20 
AnswerRe: LNK 2001 Pin
Sauro Viti1-Sep-10 4:15
professionalSauro Viti1-Sep-10 4:15 
QuestionRe: LNK 2001 Pin
David Crow1-Sep-10 4:21
David Crow1-Sep-10 4:21 
Questioncreating sidebar like vista sidebar for XP Pin
ganesh.dp1-Sep-10 2:45
ganesh.dp1-Sep-10 2:45 
AnswerRe: creating sidebar like vista sidebar for XP Pin
Cool_Dev1-Sep-10 3:50
Cool_Dev1-Sep-10 3:50 
AnswerRe: creating sidebar like vista sidebar for XP Pin
Chris Losinger1-Sep-10 4:28
professionalChris Losinger1-Sep-10 4:28 
QuestionImplementing timeout in downloading a webpage Pin
learningvisualc1-Sep-10 2:40
learningvisualc1-Sep-10 2:40 
AnswerRe: Implementing timeout in downloading a webpage Pin
CPallini1-Sep-10 2:58
mveCPallini1-Sep-10 2:58 
QuestionIf I want to achive the SMTP protocol, how can I do Pin
yu-jian1-Sep-10 2:22
yu-jian1-Sep-10 2:22 
AnswerRe: If I want to achive the SMTP protocol, how can I do Pin
Emilio Garavaglia1-Sep-10 2:33
Emilio Garavaglia1-Sep-10 2:33 
AnswerRe: If I want to achive the SMTP protocol, how can I do Pin
CPallini1-Sep-10 2:42
mveCPallini1-Sep-10 2:42 

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.