WM_ACTIVATE Message in WndProc

  • Thread starter Thread starter Manish Agarwal
  • Start date Start date
M

Manish Agarwal

Hello,

I am implementing a control derived from
System.Windows.Forms.UserControl class. This look like something
similar to Visual Studio 2005's dockable tab control for callstack,
output, watch window etc.

In my control class, I am overriding following method.

override void WndProc(ref System.Windows.Forms.Message m)

In this method, I am checking m.Msg for following messages:

WM_ACTIVATE, WM_SETFOCUS, WM_KILLFOCUS etc. but there is no
notification come even if I change the focus from my UserControl.

I am getting notification for WM_PARENTNOTIFY and for my user defined
messages.

Please suggest, what I am missing here.

Regards,
Manish Agarwal
 
Back
Top