Click here to Skip to main content
15,920,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionregarding visual studio 2005 [modified] Pin
Sunshine Always23-Nov-06 17:35
Sunshine Always23-Nov-06 17:35 
AnswerRe: regarding visual studio 2005 Pin
Benoy Bose23-Nov-06 19:19
Benoy Bose23-Nov-06 19:19 
GeneralRe: regarding visual studio 2005 Pin
Sunshine Always24-Nov-06 0:09
Sunshine Always24-Nov-06 0:09 
QuestionHow to show a dialog in dll Pin
ioat23-Nov-06 17:09
ioat23-Nov-06 17:09 
AnswerRe: How to show a dialog in dll Pin
Galatei23-Nov-06 22:16
Galatei23-Nov-06 22:16 
GeneralRe: How to show a dialog in dll Pin
ioat24-Nov-06 12:19
ioat24-Nov-06 12:19 
QuestionVista PnP Driver Installation without PoP up of New hardware Found Dialog Pin
Sonani Prakash23-Nov-06 17:07
Sonani Prakash23-Nov-06 17:07 
QuestionNeed MFC Combo Box Help [modified] Pin
CoffeeAddict1923-Nov-06 16:07
CoffeeAddict1923-Nov-06 16:07 
I've got an MFC dialog box with a combo box and several text boxes. I have to know what item in the combo box is selected in order to display the right content in the text boxes. Right now I have it set up so that when the user clicks a button it executes this segment:

CurrentSelection = ComboBoxPtr->GetCurSel();
CurrentContact = m_pMainWnd->OperationsClass.PhoneBookClass.ReturnContact(CurrentSelection);
//update text boxes based on name combo box selection
UpdateContactTextBoxes(CurrentSelection);

How can is I set it up so that it will detect when the user makes a change in the combo box, gets the current selection, and automatically executes UpdateContactTextBoxes(CurrentSelection), all without using a button? I saw a tutorial on how to do it with a wizard, but can anyone tell me how to do it with straight MFC code? I hate wizards.
AnswerRe: Need MFC Combo Box Help Pin
Aqueel23-Nov-06 17:05
Aqueel23-Nov-06 17:05 
AnswerRe: Need MFC Combo Box Help Pin
VCSharp00723-Nov-06 17:09
VCSharp00723-Nov-06 17:09 
AnswerRe: Need MFC Combo Box Help Pin
Nibu babu thomas23-Nov-06 17:26
Nibu babu thomas23-Nov-06 17:26 
GeneralRe: Need MFC Combo Box Help Pin
CoffeeAddict1924-Nov-06 7:16
CoffeeAddict1924-Nov-06 7:16 
QuestionVisual Studio: ncb file Pin
devvvy23-Nov-06 15:52
devvvy23-Nov-06 15:52 
AnswerRe: Visual Studio: ncb file Pin
nguyenvhn23-Nov-06 17:07
nguyenvhn23-Nov-06 17:07 
GeneralRe: Visual Studio: ncb file Pin
devvvy23-Nov-06 18:34
devvvy23-Nov-06 18:34 
GeneralRe: Visual Studio: ncb file Pin
Mark Salsbery24-Nov-06 6:33
Mark Salsbery24-Nov-06 6:33 
QuestionShow subitems of an item in listbox Pin
VishnuKalyani23-Nov-06 15:04
VishnuKalyani23-Nov-06 15:04 
AnswerRe: Show subitems of an item in listbox Pin
nguyenvhn23-Nov-06 17:14
nguyenvhn23-Nov-06 17:14 
AnswerRe: Show subitems of an item in listbox Pin
VCSharp00723-Nov-06 17:16
VCSharp00723-Nov-06 17:16 
QuestionHow to disable the joystick by programming Pin
LaHaHa23-Nov-06 14:53
LaHaHa23-Nov-06 14:53 
QuestionMenu question [modified] Pin
zt978823-Nov-06 14:53
zt978823-Nov-06 14:53 
Questionnative c++ database Pin
GVR197923-Nov-06 13:44
GVR197923-Nov-06 13:44 
AnswerRe: native c++ database Pin
Leah_Garrett23-Nov-06 15:21
Leah_Garrett23-Nov-06 15:21 
GeneralRe: native c++ database Pin
GVR197928-Nov-06 8:41
GVR197928-Nov-06 8:41 
GeneralRe: native c++ database Pin
Leah_Garrett28-Nov-06 15:14
Leah_Garrett28-Nov-06 15:14 

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.