CWindowImpl and WS_POPUP style
-
I'm trying to create a window by implementing CWindowImpl and I want to remove the title bar from the window. I can do this using the WS_POPUP style using the win32 API, but when applied to CWindowImpl, the window is not visible. The code below gives me an unusable window. #include class CWindowTest : public CWindowImpl { public: CWindowTest() { Create(NULL, CWindow::rcDefault, _T("Test"), WS_THICKFRAME|WS_POPUP|WS_VISIBLE); } virtual ~CWindowTest(){} BEGIN_MSG_MAP(CWindowTest) END_MSG_MAP(); }; Cheers, Angus
-
I'm trying to create a window by implementing CWindowImpl and I want to remove the title bar from the window. I can do this using the WS_POPUP style using the win32 API, but when applied to CWindowImpl, the window is not visible. The code below gives me an unusable window. #include class CWindowTest : public CWindowImpl { public: CWindowTest() { Create(NULL, CWindow::rcDefault, _T("Test"), WS_THICKFRAME|WS_POPUP|WS_VISIBLE); } virtual ~CWindowTest(){} BEGIN_MSG_MAP(CWindowTest) END_MSG_MAP(); }; Cheers, Angus