Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. CWindowImpl and WS_POPUP style

CWindowImpl and WS_POPUP style

Scheduled Pinned Locked Moved COM
json
2 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Angus
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • A 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

      A Offline
      A Offline
      Angus
      wrote on last edited by
      #2

      Found the error! rcDefault cannot be used with the WS_POPUP style. Yet another wasted few hours...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups