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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Changing window style in SDI application

Changing window style in SDI application

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 Posters 3 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.
  • Y Offline
    Y Offline
    yanuart
    wrote on last edited by
    #1

    I'm creating a SDI application with the view derived from CFormview, and I want to change the window style so that it'll have a full screen view on it. I'd changed the window style into WS_POPUP|WS_VISIBLE|WS_MAXIMIZE on the PreCreateWindow method of the CMainFrame but the result is my app always hiding. It works for a SDI app with a base CView.. Does anyone know how to make/change my window style in a SDI app (especially using formview since in simple SDI it works)??

    B R 2 Replies Last reply
    0
    • Y yanuart

      I'm creating a SDI application with the view derived from CFormview, and I want to change the window style so that it'll have a full screen view on it. I'd changed the window style into WS_POPUP|WS_VISIBLE|WS_MAXIMIZE on the PreCreateWindow method of the CMainFrame but the result is my app always hiding. It works for a SDI app with a base CView.. Does anyone know how to make/change my window style in a SDI app (especially using formview since in simple SDI it works)??

      B Offline
      B Offline
      Branislav
      wrote on last edited by
      #2
      1. in ShowWindow change SW_SHOW with SW_MAXIMIZE. 2) in PreCreateWindow(CREATESTRUCT& cs)add lines: cs.cx = GetSystemMetrics(SM_CXMAXIMIZED); cs.cy = GetSystemMetrics(SM_CYMAXIMIZED); cs.x = 0; cs.y = 0; one or both if you shall
      1 Reply Last reply
      0
      • Y yanuart

        I'm creating a SDI application with the view derived from CFormview, and I want to change the window style so that it'll have a full screen view on it. I'd changed the window style into WS_POPUP|WS_VISIBLE|WS_MAXIMIZE on the PreCreateWindow method of the CMainFrame but the result is my app always hiding. It works for a SDI app with a base CView.. Does anyone know how to make/change my window style in a SDI app (especially using formview since in simple SDI it works)??

        R Offline
        R Offline
        Renjith Ramachandran
        wrote on last edited by
        #3

        in Your InitInstance() m_pMainWnd->ShowWindow(SW_MAXIMIZE); I want to change Myself..Can u help me? :)

        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