Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Handle maps Pin
Budric B.2-Jun-05 6:15
Budric B.2-Jun-05 6:15 
GeneralRe: Handle maps Pin
S. Senthil Kumar2-Jun-05 6:54
S. Senthil Kumar2-Jun-05 6:54 
GeneralShell programming problem, about context menu Pin
scchan19842-Jun-05 4:36
scchan19842-Jun-05 4:36 
GeneralKinda new...need help Pin
Matthew Devine2-Jun-05 4:31
Matthew Devine2-Jun-05 4:31 
GeneralCStatic question ( dumb friday question ) Pin
Maximilien2-Jun-05 4:03
Maximilien2-Jun-05 4:03 
GeneralRe: CStatic question ( dumb friday question ) Pin
Cedric Moonen2-Jun-05 4:07
Cedric Moonen2-Jun-05 4:07 
GeneralRe: CStatic question ( dumb friday question ) Pin
Tom Archer2-Jun-05 4:20
Tom Archer2-Jun-05 4:20 
GeneralRe: CStatic question ( dumb friday question ) Pin
Maximilien2-Jun-05 5:27
Maximilien2-Jun-05 5:27 
that's what I'm doing.

I have derived my own class from CStatic; inserted a CStatic in my dialog resource

used DDX_Control to do the automatic subclassing.

some code...

my CStatic derived class :

IMPLEMENT_DYNAMIC(CMyStatic, CStatic)
CMyStatic::CMyStatic()
{
}

CMyStatic::~CMyStatic()
{
}


BEGIN_MESSAGE_MAP(CMyStatic, CStatic)
	ON_WM_CREATE()
END_MESSAGE_MAP()


int CMyStatic::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CStatic::OnCreate(lpCreateStruct) == -1)
		return -1;

	return 0;
}


class CMyStatic : public CStatic
{
	DECLARE_DYNAMIC(CMyStatic)

public:
	CMyStatic();
	virtual ~CMyStatic();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};


in my dialog class I have

DDX_Control(pDX, IDC_MY_STATIC, m_MyStatic);

and in the header :

CMyStatic m_MyStatic;

did I miss something obvious ?




Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: CStatic question ( dumb friday question ) Pin
Maximilien2-Jun-05 5:48
Maximilien2-Jun-05 5:48 
GeneralRe: CStatic question ( dumb friday question ) Pin
Tom Archer2-Jun-05 5:57
Tom Archer2-Jun-05 5:57 
GeneralRe: CStatic question ( dumb friday question ) Pin
Maximilien2-Jun-05 7:25
Maximilien2-Jun-05 7:25 
GeneralRe: CStatic question ( dumb friday question ) Pin
Tom Archer2-Jun-05 9:46
Tom Archer2-Jun-05 9:46 
GeneralRe: CStatic question ( dumb friday question ) Pin
Maximilien2-Jun-05 11:48
Maximilien2-Jun-05 11:48 
GeneralRe: CStatic question ( dumb friday question ) Pin
Tom Archer2-Jun-05 10:02
Tom Archer2-Jun-05 10:02 
QuestionWhat shuld I do to grab any audio data from sound card? Pin
ytod2-Jun-05 4:02
ytod2-Jun-05 4:02 
Generalsame project to build dll and static lib Pin
Chintoo7232-Jun-05 3:48
Chintoo7232-Jun-05 3:48 
GeneralRe: same project to build dll and static lib Pin
Ravi Bhavnani2-Jun-05 5:16
professionalRavi Bhavnani2-Jun-05 5:16 
GeneralRe: same project to build dll and static lib Pin
liquid_2-Jun-05 7:20
liquid_2-Jun-05 7:20 
GeneralActiveX Pin
racing572-Jun-05 3:35
racing572-Jun-05 3:35 
QuestionHow to get the deleted character Pin
Veera Raghavendra2-Jun-05 3:12
Veera Raghavendra2-Jun-05 3:12 
AnswerRe: How to get the deleted character Pin
Cedric Moonen2-Jun-05 3:17
Cedric Moonen2-Jun-05 3:17 
GeneralRe: How to get the deleted character Pin
Veera Raghavendra2-Jun-05 3:22
Veera Raghavendra2-Jun-05 3:22 
GeneralRe: How to get the deleted character Pin
Cedric Moonen2-Jun-05 4:13
Cedric Moonen2-Jun-05 4:13 
GeneralRe: How to get the deleted character Pin
Veera Raghavendra2-Jun-05 18:36
Veera Raghavendra2-Jun-05 18:36 
GeneralRe: How to get the deleted character Pin
S. Senthil Kumar2-Jun-05 6:01
S. Senthil Kumar2-Jun-05 6:01 

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.