Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stack overflow Pin
Mark Salsbery9-Dec-07 7:45
Mark Salsbery9-Dec-07 7:45 
GeneralRe: Stack overflow Pin
RomTibi9-Dec-07 20:56
RomTibi9-Dec-07 20:56 
GeneralRe: Stack overflow Pin
Mark Salsbery10-Dec-07 7:20
Mark Salsbery10-Dec-07 7:20 
GeneralRe: Stack overflow Pin
RomTibi10-Dec-07 8:38
RomTibi10-Dec-07 8:38 
QuestionHow to Find out what was selected in Combo Box Pin
Larry Mills Sr9-Dec-07 4:28
Larry Mills Sr9-Dec-07 4:28 
AnswerRe: How to Find out what was selected in Combo Box Pin
Hamid_RT9-Dec-07 6:25
Hamid_RT9-Dec-07 6:25 
AnswerRe: How to Find out what was selected in Combo Box Pin
Mark Salsbery9-Dec-07 7:09
Mark Salsbery9-Dec-07 7:09 
AnswerRe: How to Find out what was selected in Combo Box Pin
ddspliting10-Dec-07 6:53
ddspliting10-Dec-07 6:53 
Hey!
Well i dun ve visual studio 08. But i can provide you a help in visual studio 6.0.
Now as you have already entered data to the combo box.Add new variable for the Combo Box in class wizard. it can be of type VALUE or CONTROL. Let it be VALUE and type CString. This variable will hold the data present in the Combo Box.Let the variable is ComboBox_Variable.
Now to check what user has selected, you can put a simple event in your program which will help in finding what user has selected from the box.
so you can add a button which will show a simple messagebox depending on the combo box data. Like a button named "Message".
Add an event handler for it and you can use the following code.
<br />
CString example;<br />
example = ComboBox_Variable;<br />
if(example=="Data-1")<br />
MessageBox("Data-1 selected by user");<br />
else if(example=="Data-2")<br />
MessageBox("Data-2 selected by user");<br />

You can use switch statement too!
I hope Combo Box will be clear to you now!
GeneralFrom Mpeg-2 to Vob Pin
mjmim9-Dec-07 3:59
mjmim9-Dec-07 3:59 
Answerabout const member function Pin
clj198705039-Dec-07 1:07
clj198705039-Dec-07 1:07 
GeneralRe: about const member function Pin
super_ttd9-Dec-07 2:51
super_ttd9-Dec-07 2:51 
GeneralRe: about const member function Pin
Steen Krogsgaard9-Dec-07 22:29
Steen Krogsgaard9-Dec-07 22:29 
Questionproblem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas8-Dec-07 23:27
ashjas8-Dec-07 23:27 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas8-Dec-07 23:33
ashjas8-Dec-07 23:33 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
normanS9-Dec-07 0:53
normanS9-Dec-07 0:53 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
markkuk9-Dec-07 2:18
markkuk9-Dec-07 2:18 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas9-Dec-07 4:15
ashjas9-Dec-07 4:15 
Questionfind error Pin
keyto8-Dec-07 20:08
keyto8-Dec-07 20:08 
GeneralRe: find error Pin
David Crow14-Mar-08 6:00
David Crow14-Mar-08 6:00 
GeneralDialogBox question Pin
KellyR8-Dec-07 8:47
KellyR8-Dec-07 8:47 
GeneralRe: DialogBox question Pin
Mark Salsbery8-Dec-07 9:25
Mark Salsbery8-Dec-07 9:25 
GeneralRe: DialogBox question Pin
KellyR8-Dec-07 9:37
KellyR8-Dec-07 9:37 
GeneralGDI+ trailing spaces and newline Pin
bob169728-Dec-07 5:59
bob169728-Dec-07 5:59 
GeneralWindow Styles Pin
Giorgi Dalakishvili8-Dec-07 4:32
mentorGiorgi Dalakishvili8-Dec-07 4:32 
GeneralRe: Window Styles Pin
Mark Salsbery8-Dec-07 6:23
Mark Salsbery8-Dec-07 6:23 

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.