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. C / C++ / MFC
  4. How to open my Mainframe

How to open my Mainframe

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    saravana001
    wrote on last edited by
    #1

    Hi all, I want my mainframe to open in the maximized view defaultly,now i'm using the maximize button to do that,can anybody plz help in this. Regards.. saravana...

    N 1 Reply Last reply
    0
    • S saravana001

      Hi all, I want my mainframe to open in the maximized view defaultly,now i'm using the maximize button to do that,can anybody plz help in this. Regards.. saravana...

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      On the last lines of CMyApp::InitInstance () if (!ProcessShellCommand(cmdInfo)) return FALSE; pMainFrame->ShowWindow(m_nCmdShow | SW_SHOWMAXIMIZED); pMainFrame->UpdateWindow(); return TRUE;

      Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

      S 1 Reply Last reply
      0
      • N Nelek

        On the last lines of CMyApp::InitInstance () if (!ProcessShellCommand(cmdInfo)) return FALSE; pMainFrame->ShowWindow(m_nCmdShow | SW_SHOWMAXIMIZED); pMainFrame->UpdateWindow(); return TRUE;

        Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

        S Offline
        S Offline
        saravana001
        wrote on last edited by
        #3

        thanq nelek..,it is working..plz help mi how to get my child window maximised.. thanks in advance saravana...

        N 1 Reply Last reply
        0
        • S saravana001

          thanq nelek..,it is working..plz help mi how to get my child window maximised.. thanks in advance saravana...

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          The principle is the same, but you should place it in CChildFrm::PreCreateWindow (...) take a look into the info of CREATESTRUCT, specially to the cs.style parameter/flag

          Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

          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