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. OnFileNew: Maximize child window

OnFileNew: Maximize child window

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiontutorial
4 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, when i create a new document the new child window is shown in its original size; i want to resize it to its maximum. How can i do that? My problem is that i don't know how to get access to the new child window. I have tried to resize all available views in CDocument::OnNewDocument() with ShowWindow(...), but this didn't work. Any help? Thanks, Chris

    U P 2 Replies Last reply
    0
    • L Lost User

      Hi, when i create a new document the new child window is shown in its original size; i want to resize it to its maximum. How can i do that? My problem is that i don't know how to get access to the new child window. I have tried to resize all available views in CDocument::OnNewDocument() with ShowWindow(...), but this didn't work. Any help? Thanks, Chris

      U Offline
      U Offline
      Uwe Keim
      wrote on last edited by
      #2

      Look at www.codeproject.com/useritems/centermdiwnd.asp, there should be a answer.

      1 Reply Last reply
      0
      • L Lost User

        Hi, when i create a new document the new child window is shown in its original size; i want to resize it to its maximum. How can i do that? My problem is that i don't know how to get access to the new child window. I have tried to resize all available views in CDocument::OnNewDocument() with ShowWindow(...), but this didn't work. Any help? Thanks, Chris

        P Offline
        P Offline
        Petrica
        wrote on last edited by
        #3

        In CChildFrame::OnCreate() send message WM_SYSCOMMAND with wParam=SC_MAXIMIZE

        L 1 Reply Last reply
        0
        • P Petrica

          In CChildFrame::OnCreate() send message WM_SYSCOMMAND with wParam=SC_MAXIMIZE

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Perfect! Thanx :)

          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