WM_ACTIVATE Message in WndProc

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top