Re: Catch WM_SIZE



On Thu, 14 Aug 2008 08:25:01 -0700, Erakis
<Erakis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

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.

Only the derived class will see its WM_SIZE messages. You need to handle it
there, either in your derived class, or by dynamically subclassing the
window (not recommended). No matter what, the dialog won't see the message
unless the control forwards it. What are you trying to accomplish?

--
Doug Harrison
Visual C++ MVP
.



Relevant Pages

  • Re: Catch WM_SIZE
    ... I want to intercept this message IN my DIALOG. ... Not in my derived class. ... where it goes to initially, to the parent window, the dialog). ... parent who orders the child to resize in the first place. ...
    (microsoft.public.vc.mfc)
  • Re: Catch WM_SIZE
    ... I want to intercept this message IN my DIALOG. ... Not in my derived class. ... where it goes to initially, to the parent window, the dialog). ... parent who orders the child to resize in the first place. ...
    (microsoft.public.vc.mfc)
  • Re: Catch WM_SIZE
    ... I want to intercept this message IN my DIALOG. ... Not in my derived class. ... How to catch the WM_SIZE message of a control created dynamically. ... OnSize function declaration, and a stub OnSize function definition. ...
    (microsoft.public.vc.mfc)
  • Re: Retrofitting base class with pure virtual function
    ... Yes, if you believe every subclass already has the methods, then making them pure virtual ... Note that you can't do this with CWnd-derived classes for MFC reasons that are ... If you introduce a pure virtual method, every derived class ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Serialization, XSD to class, and deep copying?
    ... our Clone() method uses serialization & deserialization create new ... you're implementing it in the base class or the derived class. ... from another MVP like yourself: ...
    (microsoft.public.dotnet.languages.csharp)