Sign in to follow this  
BeanDog

Keep window title bar from appearing unfocused

Recommended Posts

I have a main window as well as a secondary window which is occasionally displayed. The secondary window is a sort of suped-up tooltip, with controls like listboxes that can get focus. The problem is that when a control on my secondary window gets the focus, the title bar dims on my main window. Since the secondary window is a small item, it looks wrong to have the main window title bar dim. How do I keep the title bar in my main window from dimming when my secondary window gets the focus? I'm using C#, but any solution is okay (I can just use the PInvoke layer).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
don't know how you do it in C#, but in win32 terms, handling the WM_NCACTIVATE msg and returning FALSE when wParam is FALSE will keep a window's title bar drawn as active.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this