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. How to minimize & Maximize a Dialog

How to minimize & Maximize a Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
9 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.
  • A Offline
    A Offline
    anilksingh
    wrote on last edited by
    #1

    How i can minimise a Dialog on a button Click.

    _ H E 3 Replies Last reply
    0
    • A anilksingh

      How i can minimise a Dialog on a button Click.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      ShowWindow(SW_MINIMIZE);_**


      **_

      whitesky


      A 1 Reply Last reply
      0
      • A anilksingh

        How i can minimise a Dialog on a button Click.

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        ShowWindow(SW_MINIMIZE); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        1 Reply Last reply
        0
        • H Hamid Taebi

          ShowWindow(SW_MINIMIZE);_**


          **_

          whitesky


          A Offline
          A Offline
          anilksingh
          wrote on last edited by
          #4

          Thaks, but it isnot working in the WenCE.

          E 1 Reply Last reply
          0
          • A anilksingh

            Thaks, but it isnot working in the WenCE.

            E Offline
            E Offline
            Eytukan
            wrote on last edited by
            #5

            Not working?? Did you pass the handle? or did you use this-> pointer? what's error message?


            --[:jig:]-- [My Current Status]

            A 1 Reply Last reply
            0
            • E Eytukan

              Not working?? Did you pass the handle? or did you use this-> pointer? what's error message?


              --[:jig:]-- [My Current Status]

              A Offline
              A Offline
              anilksingh
              wrote on last edited by
              #6

              I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE

              E H 2 Replies Last reply
              0
              • A anilksingh

                I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE

                E Offline
                E Offline
                Eytukan
                wrote on last edited by
                #7

                Hey I'm sorry!! CE doesn't support SW_SHOWMAXIMIZED But I think you can stil do it with ::MoveWindow instead. Move it to the size of the screen coordinates :cool:. And always have this in your hand... The Golden Sword^


                --[:jig:]-- [My Current Status]

                1 Reply Last reply
                0
                • A anilksingh

                  How i can minimise a Dialog on a button Click.

                  E Offline
                  E Offline
                  Eytukan
                  wrote on last edited by
                  #8

                  #define MENU_HEIGHT 26 RECT rc; //get window size GetWindowRect(hWnd, &rc); SHFullScreen(hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON); ShowWindow(hwndCB, SW_HIDE); MoveWindow(hWnd, rc.left, rc.top-MENU_HEIGHT, rc.right, rc.bottom+MENU_HEIGHT, TRUE); Click Here for more^ Enjoy!


                  --[:jig:]-- [My Current Status]

                  1 Reply Last reply
                  0
                  • A anilksingh

                    I had used if(m_bMinimize) CMyDlg::ShowWindow(SW_MINIMIZE); ; ; ; ; ; CMyDlg::ShowWindow(SW_SHOWMAXIMIZED); This code is written in a button click of my Dialog. The Dialog is minimised but it does not maximise again. This is working fine in VC++ but does not working in WinCE

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    yes you can use MoveWindow or SetWindowPos instead this function_**


                    **_

                    whitesky


                    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