Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to do? Pin
john563230-Mar-11 20:41
john563230-Mar-11 20:41 
GeneralRe: How to do? Pin
Code-o-mat30-Mar-11 23:58
Code-o-mat30-Mar-11 23:58 
AnswerRe: How to do? Pin
Stefan_Lang30-Mar-11 4:53
Stefan_Lang30-Mar-11 4:53 
QuestionHow do I find a Microsoft Forms 2.0 Control in a VC6 Project? [modified] Pin
JohnnyG29-Mar-11 8:52
JohnnyG29-Mar-11 8:52 
AnswerRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
Hans Dietrich29-Mar-11 10:32
mentorHans Dietrich29-Mar-11 10:32 
GeneralRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
JohnnyG30-Mar-11 2:27
JohnnyG30-Mar-11 2:27 
GeneralRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
JohnnyG30-Mar-11 5:21
JohnnyG30-Mar-11 5:21 
QuestionHow do I get the ID of ComboBox? Pin
jhoesche0229-Mar-11 7:00
jhoesche0229-Mar-11 7:00 
I have a Dialog that has many controls on it. It has multiple ComboBoxes that I have calling the same function when an item is selected in them. I am using CBN_SELCHANGE that calls my function. To get the ID of the control that was changed, I use:

CWnd *pwnd = GetFocus();
crtlid = pwnd->GetDlgCtrlID();

but the ID that is returned is always 1001 and is not the ID of any of the ComboBoxes - they start at 1454 in the resource.h file. None of the controls on the dialog has the ID 1001 so I am confused to what has the focus. Does anyone know what I am doing wrong. I am using VC++ 2005 for a Dialog based MFC application , and using MFC as a static library. Any help would be appreciated - Thanks in advance!

David
AnswerRe: How do I get the ID of ComboBox? Pin
Albert Holguin29-Mar-11 7:58
professionalAlbert Holguin29-Mar-11 7:58 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
jhoesche0229-Mar-11 8:44
jhoesche0229-Mar-11 8:44 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
Albert Holguin29-Mar-11 8:48
professionalAlbert Holguin29-Mar-11 8:48 
AnswerRe: How do I get the ID of ComboBox? Pin
Maximilien29-Mar-11 8:23
Maximilien29-Mar-11 8:23 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
jhoesche0229-Mar-11 8:46
jhoesche0229-Mar-11 8:46 
GeneralRe: How do I get the ID of ComboBox? Pin
Niklas L30-Mar-11 0:48
Niklas L30-Mar-11 0:48 
AnswerRe: How do I get the ID of ComboBox? Pin
Richard MacCutchan29-Mar-11 10:48
mveRichard MacCutchan29-Mar-11 10:48 
QuestionOUT parameters in inline asm Pin
csrss29-Mar-11 3:25
csrss29-Mar-11 3:25 
AnswerRe: OUT parameters in inline asm [SOLVED] Pin
csrss29-Mar-11 4:17
csrss29-Mar-11 4:17 
QuestionBit extraction from byte Pin
sathishrdh29-Mar-11 2:22
sathishrdh29-Mar-11 2:22 
AnswerRe: Bit extraction from byte Pin
Niklas L29-Mar-11 2:27
Niklas L29-Mar-11 2:27 
GeneralRe: Bit extraction from byte Pin
Albert Holguin29-Mar-11 3:50
professionalAlbert Holguin29-Mar-11 3:50 
GeneralRe: Bit extraction from byte Pin
Peter_in_278029-Mar-11 11:43
professionalPeter_in_278029-Mar-11 11:43 
GeneralRe: Bit extraction from byte Pin
Albert Holguin29-Mar-11 12:51
professionalAlbert Holguin29-Mar-11 12:51 
AnswerRe: Bit extraction from byte Pin
Stefan_Lang30-Mar-11 1:53
Stefan_Lang30-Mar-11 1:53 
QuestionFrench localization using Single-byte character set (SBCS) Pin
Selvam R28-Mar-11 23:27
professionalSelvam R28-Mar-11 23:27 
AnswerRe: French localization using Single-byte character set (SBCS) Pin
Richard MacCutchan28-Mar-11 23:59
mveRichard MacCutchan28-Mar-11 23:59 

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.