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. SDI Main Window

SDI Main Window

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 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.
  • P Offline
    P Offline
    ppathan
    wrote on last edited by
    #1

    Is there any way that the main window of SDI is always maximised? Currently, I have to click the maximize button to make it full size.

    S 1 Reply Last reply
    0
    • P ppathan

      Is there any way that the main window of SDI is always maximised? Currently, I have to click the maximize button to make it full size.

      S Offline
      S Offline
      Shay Harel
      wrote on last edited by
      #2

      When you create it, Use WS_MAXIMIZE on the flags

      P 1 Reply Last reply
      0
      • S Shay Harel

        When you create it, Use WS_MAXIMIZE on the flags

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

        can u provide me with exact syntax? I tried to create it but it didn't work

        S 1 Reply Last reply
        0
        • P ppathan

          can u provide me with exact syntax? I tried to create it but it didn't work

          S Offline
          S Offline
          Shay Harel
          wrote on last edited by
          #4

          Go to the OnCreate function of your main window, and at the end of the function add this line: code>ShowWindow (SW_MAXIMIZE);<

          D 1 Reply Last reply
          0
          • S Shay Harel

            Go to the OnCreate function of your main window, and at the end of the function add this line: code>ShowWindow (SW_MAXIMIZE);<

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Sans the HTML tags, of course! :-O

            S 1 Reply Last reply
            0
            • D David Crow

              Sans the HTML tags, of course! :-O

              S Offline
              S Offline
              Shay Harel
              wrote on last edited by
              #6

              doooooooooouuuuuuuhhhhhhhh !!!!! But you got the main point

              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