On Fri, 6 Jun 2008 05:08:50 -0700 (PDT), Stodge <stodge@gmail.com> wrote:
On Jun 6, 8:01?am, Stodge <sto...@gmail.com> wrote:
This is a weird one. I'm creating a window for a class derived from
CWnd using CreateEx. The window is created and it is perfectly usable.
However, all of its widgets, and its style in general is that of
Windows 3.1! I don't understand how this can be. My code:
CString my_class = AfxRegisterWndClass(CS_VREDRAW | CS_HREDRAW,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ::LoadCursor(NULL, IDC_ARROW),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (HBRUSH) ::GetStockObject(WHITE_BRUSH),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ::LoadIcon(NULL, IDI_APPLICATION));
BOOL status = mInterpreter->CreateEx( ? ? ? ?WS_EX_APPWINDOW|WS_EX_CLIENTEDGE|
WS_EX_WINDOWEDGE,
? ? ? ? ? ? ? ? my_class, _T("Python Interpreter"), WS_OVERLAPPEDWINDOW|WS_VISIBLE|
WS_BORDER,
? ? ? ? ? ? ? ? CRect(0, 0, 800, 600), NULL /* parent */, NULL, NULL);
This is VC2005 under Win2k.
Microsoft Visual Studio 2005
Version 8.0.50727.42
Any suggestions greatly appreciated!! Thanks
I should point out that this application already displays a CWnd that
has the correct style. I don't want this new window to be a child of
the original one.