When I turn on general support for the visual control style (InitCommonControls ()), and I use any theme other than Windows Classic Theme, the buttons inside the group window appear with a black border with square corners.
Windows Classic Theme looks fine, and also when I turn off the visual style.
I am using the following code:
group_box = CreateWindow(TEXT("BUTTON"), TEXT("BS_GROUPBOX"),
WS_CHILD | WS_VISIBLE | BS_GROUPBOX | WS_GROUP,
10, 10, 200, 300,
hwnd, NULL, hInstance, 0);
push_button = CreateWindow(TEXT("BUTTON"), TEXT("BS_PUSHBUTTON"),
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
40, 40, 100, 22,
group_box, NULL, hInstance, 0);
EDIT: problem arises with switches
EDIT: I do not use any dialogs / resources, only CreateWindow / Ex.
I am compiling in Visual C ++ 2008 Express SP1 with a common manifest
Screenshot http://img.ispankcode.com/black_border_issue.png