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. Cstatic Button

Cstatic Button

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

    Hello friends i try to add button on CStatic control but button not show.How can i add button on CStatic?

    I M _ V 4 Replies Last reply
    0
    • C cino alex

      Hello friends i try to add button on CStatic control but button not show.How can i add button on CStatic?

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      If you show the code you used to add a button to a static, then maybe we can see what you did wrong. It will also give us a better idea of the context of this problem. So our help can be better targeted. Iain.

      I am one of "those foreigners coming over here and stealing our jobs". Yay me!

      1 Reply Last reply
      0
      • C cino alex

        Hello friends i try to add button on CStatic control but button not show.How can i add button on CStatic?

        M Offline
        M Offline
        Moak
        wrote on last edited by
        #3

        Create the button as child control of your CStatic (meaning CStatic window is parent of the new button). Hope it helps! :)

        Chat in Europe :java: Now with 24% more Twitter

        1 Reply Last reply
        0
        • C cino alex

          Hello friends i try to add button on CStatic control but button not show.How can i add button on CStatic?

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

          Its probably a Z-Order issue. In the dialog template press Ctrl+D and change the order of the controls.

          «_Superman_»
          I love work. It gives me something to do between weekends.

          Microsoft MVP (Visual C++)

          Polymorphism in C

          1 Reply Last reply
          0
          • C cino alex

            Hello friends i try to add button on CStatic control but button not show.How can i add button on CStatic?

            V Offline
            V Offline
            vasu_sri
            wrote on last edited by
            #5

            In CStatic class, create a member variable of CButton; oterwise it doesnt create a control. in header file, m_btnInStatic; in cpp file, m_btnStatic.Create(....); like that.

            Regards, Srinivas

            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