Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Not an MFC project?? Pin
perlmunger16-Apr-03 8:38
perlmunger16-Apr-03 8:38 
AnswerRe: Not an MFC project?? Pin
Toni7816-Apr-03 21:24
Toni7816-Apr-03 21:24 
GeneralStupid comb box not working Pin
Anonymous16-Apr-03 7:25
Anonymous16-Apr-03 7:25 
GeneralRe: Stupid comb box not working Pin
Anonymous16-Apr-03 8:44
Anonymous16-Apr-03 8:44 
GeneralRe: Stupid comb box not working Pin
perlmunger16-Apr-03 8:57
perlmunger16-Apr-03 8:57 
GeneralRe: Stupid comb box not working Pin
Anonymous16-Apr-03 9:30
Anonymous16-Apr-03 9:30 
GeneralRe: Stupid ... (figured it out, still need help though) Pin
Anonymous16-Apr-03 9:42
Anonymous16-Apr-03 9:42 
GeneralRe: Stupid ... (figured it out, still need help though) Pin
Mr. Maan16-Apr-03 12:07
Mr. Maan16-Apr-03 12:07 
The message for Combo box you handled in the parent dialog
i.e. CBN_SELCHANGE is called notification. In your project this notification message from child i.e. ComboBox to parent dialog is handled by the parent (Dialog which has the message handler). But when you derive the a class publically from the CComboBox class then you define the message handler in this new derive class for the notification message from the ComboBox and this method is called Message Reflection.
Now you will have to map your combo box with your newly
derived class through wizard which will defined an instance
of derive class to the parent dialog like...

class CSelChangeTestDlg:public CDialog<br />
{<br />
...<br />
private:<br />
        CDerivedCombo  m_MyCombo;<br />
....<br />
}<br />
<br />
void CSelChangeTestDlg::DoDataExchange(CDataExchange* pDX)<br />
{	<br />
  CDialog::DoDataExchange(pDX);<br />
  //{{AFX_DATA_MAP(CSelChangeTestDlg)	<br />
     DDX_Control(pDX, IDC_COMBO1, m_MyCombo);	<br />
     ......   <br />
//}}AFX_DATA_MAP}<br />
}

Now the newly derivered class is self contained and you can this class for the customized behaviour in any project. You dont have to define the message handler again in the parent class/Window of the ComboBox because this defined in the derived class. you only need to map it with the Combo Box. If you need further help plz .....
Rose | [Rose] Regard,

Nasir Maan
GeneralI very am confused with menssages between instances Pin
Martin_Viet16-Apr-03 6:33
Martin_Viet16-Apr-03 6:33 
GeneralRe: I very am confused with menssages between instances Pin
User 665816-Apr-03 7:04
User 665816-Apr-03 7:04 
General(:() I very am confused with menssages between instances Pin
Martin_Viet16-Apr-03 7:31
Martin_Viet16-Apr-03 7:31 
GeneralRe: (:() I very am confused with menssages between instances Pin
Martin_Viet16-Apr-03 9:23
Martin_Viet16-Apr-03 9:23 
GeneralActive X using another Active X Pin
dvlpt16-Apr-03 6:14
dvlpt16-Apr-03 6:14 
GeneralRe: Active X using another Active X Pin
Mauricio Ritter16-Apr-03 6:19
Mauricio Ritter16-Apr-03 6:19 
GeneralRe: Active X using another Active X Pin
dvlpt16-Apr-03 6:23
dvlpt16-Apr-03 6:23 
GeneralRe: Active X using another Active X Pin
Mauricio Ritter16-Apr-03 6:40
Mauricio Ritter16-Apr-03 6:40 
GeneralRe: Active X using another Active X Pin
dvlpt17-Apr-03 0:04
dvlpt17-Apr-03 0:04 
GeneralPrinting Active Documents Pin
Martyn Pearson16-Apr-03 5:29
Martyn Pearson16-Apr-03 5:29 
GeneralMulti-threaded graphics in MFC Pin
Iceman16-Apr-03 5:26
Iceman16-Apr-03 5:26 
GeneralRe: Multi-threaded graphics in MFC Pin
Chris Losinger16-Apr-03 5:47
professionalChris Losinger16-Apr-03 5:47 
GeneralRe: Multi-threaded graphics in MFC Pin
Iceman16-Apr-03 6:07
Iceman16-Apr-03 6:07 
GeneralUse of class function in thread Pin
Tomaz Rotovnik16-Apr-03 5:02
Tomaz Rotovnik16-Apr-03 5:02 
GeneralRe: Use of class function in thread Pin
valikac16-Apr-03 5:35
valikac16-Apr-03 5:35 
GeneralRe: Use of class function in thread Pin
Tomaz Rotovnik16-Apr-03 5:55
Tomaz Rotovnik16-Apr-03 5:55 
GeneralRe: Use of class function in thread Pin
Joaquín M López Muñoz16-Apr-03 8:35
Joaquín M López Muñoz16-Apr-03 8:35 

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.