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. controls visible or not at runtime

controls visible or not at runtime

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 5 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.
  • D Offline
    D Offline
    Desmo16
    wrote on last edited by
    #1

    Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.

    S T _ H 4 Replies Last reply
    0
    • D Desmo16

      Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.

      S Offline
      S Offline
      see me
      wrote on last edited by
      #2

      Please mention some thing about wat language u r using???:doh: do u mean controls in MFC dialg based application???:doh:

      Dream bigger... Do bigger...Expect smaller aji

      1 Reply Last reply
      0
      • D Desmo16

        Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.

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

        GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_HIDE); GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_SHOW);


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        S 1 Reply Last reply
        0
        • D Desmo16

          Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.

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

          Yes you can change the position of a control at runtime. See MoveWindow()

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

          1 Reply Last reply
          0
          • T toxcct

            GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_HIDE); GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_SHOW);


            TOXCCT >>> GEII power

            [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

            S Offline
            S Offline
            see me
            wrote on last edited by
            #5

            also to move controls BOOL MoveWindow( int x, int y,int nWidth, int nHeight, BOOL bRepaint = TRUE ) or SetWindowPos ( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags ); :)

            Dream bigger... Do bigger...Expect smaller aji

            T 1 Reply Last reply
            0
            • S see me

              also to move controls BOOL MoveWindow( int x, int y,int nWidth, int nHeight, BOOL bRepaint = TRUE ) or SetWindowPos ( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags ); :)

              Dream bigger... Do bigger...Expect smaller aji

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

              say this to the OP... i didn't ask the question.


              TOXCCT >>> GEII power

              [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

              S 1 Reply Last reply
              0
              • T toxcct

                say this to the OP... i didn't ask the question.


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                S Offline
                S Offline
                see me
                wrote on last edited by
                #7

                Whats in my mind is, he can also see the answer from here naaa???:-D I just want to add my point with your answer.:rolleyes:

                Dream bigger... Do bigger...Expect smaller aji

                T 1 Reply Last reply
                0
                • S see me

                  Whats in my mind is, he can also see the answer from here naaa???:-D I just want to add my point with your answer.:rolleyes:

                  Dream bigger... Do bigger...Expect smaller aji

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

                  sure ;P:rolleyes:


                  TOXCCT >>> GEII power

                  [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                  1 Reply Last reply
                  0
                  • D Desmo16

                    Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.

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

                    See MoveWindow(...)//position ShowWindow(SW_SHOW or SW_HIDE) for visible or not

                    _**


                    **_

                    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