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. Static Label Visible Problem

Static Label Visible Problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
5 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
    Dhiraj kumar Saini
    wrote on last edited by
    #1

    I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini

    C C S T 4 Replies Last reply
    0
    • D Dhiraj kumar Saini

      I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      ShowWindow function can be used to make the static control visible during runtime GetDlgItem(IDC_STATIC)->ShowWindow(TRUE) u can try using this.

      1 Reply Last reply
      0
      • D Dhiraj kumar Saini

        I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        GetDlgItem(ID_MYCONTROL)->ShowWindow(SW_VISIBLE);

        Cédric Moonen Software developer
        Charting control [v1.5] OpenGL game tutorial in C++

        1 Reply Last reply
        0
        • D Dhiraj kumar Saini

          I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini

          S Offline
          S Offline
          Sandeep Saini SRE
          wrote on last edited by
          #4

          if(label_has_certain_values_during_runtime)
          {
          GetDlgItem(IDC_STATIC_EMAIL)->ShowWindow(TRUE);
          }

          1 Reply Last reply
          0
          • D Dhiraj kumar Saini

            I am using MFC. In my application i am using two label one for e-mail id and other for certain URL. Initially I have set its property of Visible to be false. Now when these two labels have certain values during runtime i want to make them visible. Please tell me how to make the static labels visible during run time. Thanks In Advance. Dhiraj Kumar Saini

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

            one thing more to remember they shouldn't have ID liek ID_STATIC! ok

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>

            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