WS_CHILD grayed out bar

Aug 20, 2009 at 3:57am
Hey guys,

Just wondering, is it possible to create a window with the WS_CHILD and WS_CAPTION styles and not have it grayed out?

Thanks!
Aug 20, 2009 at 5:29am
Nevermind, I got it working. It involves intercepting two messages...

1
2
3
4
5
6
7
8
9
10
11

switch(msg)
{
	case WM_MOUSEACTIVATE:
		BringWindowToTop(hwnd);
		break;
	case WM_NCCREATE:
		SendMessage(hwnd, WM_NCACTIVATE, -1, 0);
		break;
}


I'm not sure how to get them to deactivate though. The WM_ACTIVATE message never goes through.
Topic archived. No new replies allowed.