Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFunction Overload Question Pin
thenutz7230-Jul-09 13:29
thenutz7230-Jul-09 13:29 
AnswerRe: Function Overload Question Pin
«_Superman_»30-Jul-09 14:02
professional«_Superman_»30-Jul-09 14:02 
GeneralRe: Function Overload Question Pin
thenutz7230-Jul-09 14:08
thenutz7230-Jul-09 14:08 
QuestionIs it possible to have a linked list for derived classes? Pin
Adassus30-Jul-09 12:03
Adassus30-Jul-09 12:03 
AnswerRe: Is it possible to have a linked list for derived classes? Pin
Garth J Lancaster30-Jul-09 12:40
professionalGarth J Lancaster30-Jul-09 12:40 
Question[Message Deleted] Pin
neha_rai30-Jul-09 11:41
neha_rai30-Jul-09 11:41 
AnswerRe: all combinations of a produced set of numbers Pin
Garth J Lancaster30-Jul-09 12:25
professionalGarth J Lancaster30-Jul-09 12:25 
QuestionPrint Pin
Amin.Abdi30-Jul-09 10:29
Amin.Abdi30-Jul-09 10:29 
AnswerRe: Print Pin
«_Superman_»30-Jul-09 14:08
professional«_Superman_»30-Jul-09 14:08 
QuestionIs there a way to save GDI+ Bitmap class instance to a file? [modified] Pin
transoft30-Jul-09 9:32
transoft30-Jul-09 9:32 
AnswerRe: Is there a way to save GDI+ Bitmap class instance to a file? Pin
«_Superman_»30-Jul-09 14:32
professional«_Superman_»30-Jul-09 14:32 
GeneralRe: Is there a way to save GDI+ Bitmap class instance to a file? Pin
bobpombrio16-Sep-09 3:57
bobpombrio16-Sep-09 3:57 
QuestionType custom message in statusbar Pin
mesajflaviu30-Jul-09 7:22
mesajflaviu30-Jul-09 7:22 
AnswerRe: Type custom message in statusbar Pin
krmed30-Jul-09 8:51
krmed30-Jul-09 8:51 
GeneralRe: Type custom message in statusbar Pin
mesajflaviu31-Jul-09 20:09
mesajflaviu31-Jul-09 20:09 
QuestionGetClassName - Determine if "Edit" window class Pin
bob1697230-Jul-09 7:16
bob1697230-Jul-09 7:16 
AnswerRe: GetClassName - Determine if "Edit" window class Pin
Richard Andrew x6430-Jul-09 10:49
professionalRichard Andrew x6430-Jul-09 10:49 
GeneralRe: GetClassName - Determine if "Edit" window class Pin
bob1697230-Jul-09 12:10
bob1697230-Jul-09 12:10 
GeneralRe: GetClassName - Determine if "Edit" window class Pin
Richard Andrew x6430-Jul-09 12:15
professionalRichard Andrew x6430-Jul-09 12:15 
GeneralRe: GetClassName - Determine if "Edit" window class Pin
bob1697231-Jul-09 3:40
bob1697231-Jul-09 3:40 
AnswerRe: GetClassName - Determine if "Edit" window class Pin
«_Superman_»30-Jul-09 14:35
professional«_Superman_»30-Jul-09 14:35 
QuestionSize Of Control Objects Pin
ForNow30-Jul-09 6:34
ForNow30-Jul-09 6:34 
AnswerRe: Size Of Control Objects Pin
Bacon Ultimate Cheeseburger1-Aug-09 17:57
Bacon Ultimate Cheeseburger1-Aug-09 17:57 
I assume that you are talking about creating controls in a CDialog derived class. If this is the case and the controls are defined in the dialogs resource then you can simply subclass the controls using their respective objects instead of calling their Create() method. Typically the controls are subclassed through the DoDataExchange() method in the CDialog derived class. If you need to create the controls dynamically use the SubclassWindow() method instead.

class CMyDialog : public CDialog
{
protected:
	virtual void DoDataExchange(CDataExchange* pDX);

	CButton m_MyButton;

	// ... more stuff here ...

};

void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	// Deal with associating the dialog
	// control with the control object
	DDX_Control(pDX, IDC_MYBUTTON, m_MyButton);
}


1300 calories of pure beef goodness can't be wrong!

GeneralRe: Size Of Control Objects Pin
ForNow1-Aug-09 19:39
ForNow1-Aug-09 19:39 
GeneralRe: Size Of Control Objects (Part 1) Pin
Bacon Ultimate Cheeseburger1-Aug-09 23:57
Bacon Ultimate Cheeseburger1-Aug-09 23:57 

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.