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. maximaze dialog?

maximaze dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
question
11 Posts 4 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 Larsson

    How can I at runtime maximaze a window?

    T Offline
    T Offline
    toxcct
    wrote on last edited by
    #2

    use CWnd::ShowWindow(SW_SHOWMAXIMIZED);


    You don't know where to start ? ask a good friend

    [VisualCalc 3.0][Flags Beginner's Guide]

    L D 2 Replies Last reply
    0
    • L Larsson

      How can I at runtime maximaze a window?

      A Offline
      A Offline
      abuseyoudna1981
      wrote on last edited by
      #3

      for example: dlg.SendMessage(WM_SIZE,SIZE_MAXIMIZED,0); you can try this.

      1 Reply Last reply
      0
      • T toxcct

        use CWnd::ShowWindow(SW_SHOWMAXIMIZED);


        You don't know where to start ? ask a good friend

        [VisualCalc 3.0][Flags Beginner's Guide]

        L Offline
        L Offline
        Larsson
        wrote on last edited by
        #4

        Error on SW_MAXIMIZED way?

        T 1 Reply Last reply
        0
        • L Larsson

          Error on SW_MAXIMIZED way?

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #5

          Larsson wrote:

          Error on SW_MAXIMIZED way?

          what error ? i don't even understand your post...


          You don't know where to start ? ask a good friend

          [VisualCalc 3.0][Flags Beginner's Guide]

          L 1 Reply Last reply
          0
          • T toxcct

            Larsson wrote:

            Error on SW_MAXIMIZED way?

            what error ? i don't even understand your post...


            You don't know where to start ? ask a good friend

            [VisualCalc 3.0][Flags Beginner's Guide]

            L Offline
            L Offline
            Larsson
            wrote on last edited by
            #6

            If I use CWnd::ShowWindow(SW_MAXIMIZED); I get; error C2065: 'SW_MAXIMIZED' : undeclared identifier Do I need to use something else?

            T 1 Reply Last reply
            0
            • L Larsson

              If I use CWnd::ShowWindow(SW_MAXIMIZED); I get; error C2065: 'SW_MAXIMIZED' : undeclared identifier Do I need to use something else?

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #7

              fixed. use SW_SHOWMAXIMIZED instead...


              You don't know where to start ? ask a good friend

              [VisualCalc 3.0][Flags Beginner's Guide]

              L 1 Reply Last reply
              0
              • T toxcct

                use CWnd::ShowWindow(SW_SHOWMAXIMIZED);


                You don't know where to start ? ask a good friend

                [VisualCalc 3.0][Flags Beginner's Guide]

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

                toxcct wrote:

                use CWnd::ShowWindow(SW_MAXIMIZED);

                Perhaps you meant SW_MAXIMIZE or SW_SHOWMAXIMIZED.


                "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                "Judge not by the eye but by the heart." - Native American Proverb

                T L 2 Replies Last reply
                0
                • D David Crow

                  toxcct wrote:

                  use CWnd::ShowWindow(SW_MAXIMIZED);

                  Perhaps you meant SW_MAXIMIZE or SW_SHOWMAXIMIZED.


                  "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                  "Judge not by the eye but by the heart." - Native American Proverb

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #9

                  you're right, i typed from my head... fixed now.


                  You don't know where to start ? ask a good friend

                  [VisualCalc 3.0][Flags Beginner's Guide]

                  1 Reply Last reply
                  0
                  • T toxcct

                    fixed. use SW_SHOWMAXIMIZED instead...


                    You don't know where to start ? ask a good friend

                    [VisualCalc 3.0][Flags Beginner's Guide]

                    L Offline
                    L Offline
                    Larsson
                    wrote on last edited by
                    #10

                    Yes I use MFC

                    1 Reply Last reply
                    0
                    • D David Crow

                      toxcct wrote:

                      use CWnd::ShowWindow(SW_MAXIMIZED);

                      Perhaps you meant SW_MAXIMIZE or SW_SHOWMAXIMIZED.


                      "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                      "Judge not by the eye but by the heart." - Native American Proverb

                      L Offline
                      L Offline
                      Larsson
                      wrote on last edited by
                      #11

                      Thanks That work.

                      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