Re: Catch WM_SIZE
- From: Erakis <Erakis@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Aug 2008 08:25:01 -0700
Thank for your anwser but this is not what I need.
I want to intercept this message IN my DIALOG. Not in my derived class.
"Scott McPhillips [MVP]" wrote:
"Erakis" <Erakis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message.
news:5BC2F5F0-D19B-4B3E-9881-EAC6B5000B32@xxxxxxxxxxxxxxxx
Hi,
How to catch the WM_SIZE message of a control created dynamically.
I mean :
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog();
// m_MyControl derived from CWND
m_MyControl.Create( NULL, _T(""), WS_VISIBLE, CRect(10, 10, 0, 0), this,
1 );
}
Add a WM_SIZE message handler in your derived-from-CWnd class. Use the
Visual Studio IDE to do this and it will add the message map entry, and the
OnSize function declaration, and a stub OnSize function definition.
--
Scott McPhillips [VC++ MVP]
- Follow-Ups:
- Re: Catch WM_SIZE
- From: David Ching
- Re: Catch WM_SIZE
- From: Doug Harrison [MVP]
- Re: Catch WM_SIZE
- From: David Ching
- Re: Catch WM_SIZE
- References:
- Catch WM_SIZE
- From: Erakis
- Re: Catch WM_SIZE
- From: Scott McPhillips [MVP]
- Catch WM_SIZE
- Prev by Date: Re: Catch WM_SIZE
- Next by Date: Re: MFC GoTo Bookmark Error
- Previous by thread: Re: Catch WM_SIZE
- Next by thread: Re: Catch WM_SIZE
- Index(es):
Relevant Pages
|