Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with CComboBox::GetCurSel() Pin
acerunner3167-Dec-06 9:07
acerunner3167-Dec-06 9:07 
AnswerRe: Problem with CComboBox::GetCurSel() Pin
Zac Howland7-Dec-06 9:12
Zac Howland7-Dec-06 9:12 
AnswerRe: Problem with CComboBox::GetCurSel() Pin
Michael Dunn7-Dec-06 9:23
sitebuilderMichael Dunn7-Dec-06 9:23 
AnswerRe: Problem with CComboBox::GetCurSel() Pin
David Crow7-Dec-06 9:31
David Crow7-Dec-06 9:31 
GeneralRe: Problem with CComboBox::GetCurSel() Pin
acerunner3167-Dec-06 9:55
acerunner3167-Dec-06 9:55 
GeneralRe: Problem with CComboBox::GetCurSel() Pin
David Crow7-Dec-06 10:01
David Crow7-Dec-06 10:01 
GeneralRe: Problem with CComboBox::GetCurSel() Pin
Zac Howland7-Dec-06 10:07
Zac Howland7-Dec-06 10:07 
AnswerRe: Problem with CComboBox::GetCurSel() Pin
Steve Echols7-Dec-06 11:28
Steve Echols7-Dec-06 11:28 
If the item's in your list are unique, you could work around this using:

CString value;<br />
m_combo.GetWindowText( value );<br />
m_combo.FindStringExact(-1, value );


Or you could cache the selected index in a member variable in your SelChange handler.

I'd probably go with option 2.


- S
50 cups of coffee and you know it's on!

QuestionCreateService() when not Admin Pin
RomTibi7-Dec-06 8:29
RomTibi7-Dec-06 8:29 
AnswerRe: CreateService() when not Admin Pin
ThatsAlok7-Dec-06 18:00
ThatsAlok7-Dec-06 18:00 
GeneralRe: CreateService() when not Admin Pin
RomTibi9-Dec-06 5:41
RomTibi9-Dec-06 5:41 
GeneralRe: CreateService() when not Admin Pin
ThatsAlok9-Dec-06 18:29
ThatsAlok9-Dec-06 18:29 
GeneralRe: CreateService() when not Admin Pin
RomTibi9-Dec-06 23:49
RomTibi9-Dec-06 23:49 
QuestionHow to Get Dimensioned Bitmap from CBitmap? Pin
MacGadger7-Dec-06 8:24
MacGadger7-Dec-06 8:24 
AnswerRe: How to Get Dimensioned Bitmap from CBitmap? Pin
CPallini7-Dec-06 10:41
mveCPallini7-Dec-06 10:41 
QuestionProgram shutdown problems Pin
#realJSOP7-Dec-06 8:13
professional#realJSOP7-Dec-06 8:13 
AnswerRe: Program shutdown problems Pin
led mike7-Dec-06 8:17
led mike7-Dec-06 8:17 
GeneralRe: Program shutdown problems Pin
#realJSOP7-Dec-06 9:03
professional#realJSOP7-Dec-06 9:03 
GeneralRe: Program shutdown problems Pin
Stephen Hewitt7-Dec-06 11:43
Stephen Hewitt7-Dec-06 11:43 
GeneralRe: Program shutdown problems Pin
led mike7-Dec-06 11:44
led mike7-Dec-06 11:44 
QuestionXLL problem Pin
rodka_raskolnikov7-Dec-06 7:32
rodka_raskolnikov7-Dec-06 7:32 
QuestionAnyone explain me this thing .. I'l b thankful .. [modified] Pin
Pimra7-Dec-06 7:07
Pimra7-Dec-06 7:07 
AnswerRe: Anyone explain me this thing .. I'l b thankful .. Pin
David Crow7-Dec-06 7:18
David Crow7-Dec-06 7:18 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
Pimra7-Dec-06 7:31
Pimra7-Dec-06 7:31 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
Maximilien7-Dec-06 7:41
Maximilien7-Dec-06 7:41 

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.