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. About Static Control

About Static Control

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestionlearning
7 Posts 3 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.
  • T Offline
    T Offline
    Thanhnamdo
    wrote on last edited by
    #1

    I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks

    H S 2 Replies Last reply
    0
    • T Thanhnamdo

      I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks

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

      if you want to show a text without change size and font i suggest use form editbox

      _**


      **_

      whitesky


      S T 2 Replies Last reply
      0
      • T Thanhnamdo

        I'm a beginner.I'm working MFC and use Static Control to show texts.But the frame of Static is too small, the texts are so much to show in the frame . Have everybody anyway to show all texts without change the frame size and Font size ? . I uesed Vertical Scroll Bar but I don't know how to do it. Please Help me ! thanks

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

        Thanhnamdo wrote:

        I uesed Vertical Scroll Bar but I don't know how to do it.

        In static control????:doh: I think u need to change font or frame size of static control to do it.:)

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

        1 Reply Last reply
        0
        • H Hamid Taebi

          if you want to show a text without change size and font i suggest use form editbox

          _**


          **_

          whitesky


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

          Yes... As WhiteSky mentioned you can use edit box after disabling for this. Here you can also find the vertical and horizontal scrol bars

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

          1 Reply Last reply
          0
          • H Hamid Taebi

            if you want to show a text without change size and font i suggest use form editbox

            _**


            **_

            whitesky


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

            The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks

            S H 2 Replies Last reply
            0
            • T Thanhnamdo

              The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks

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

              To change font Here am giving a font of Arial 14 to edit box. 1) add member variable CFont m_FontArial14; 2) Create font for the edit box in the constructor of the class m_FontArial14.CreatePointFont( 140, "Arial" ); 3) Then call SetFont in OnInitDialog() GetDlgItem( IDC_EDIT )->SetFont( &m_FontArial14 ); ( where IDC_EDIT is the ID of the edit control ) To change color it is better to override OnCtlColor() :)

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

              1 Reply Last reply
              0
              • T Thanhnamdo

                The first , I tried with Edit Box , but I want to use Font, colour and Font size . Because i 'm a beginner so I don't known to change Font , colour and Font size in Edit box . If you know how to , Please show to me ! thanks

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

                for change color see WM_CTLCOLOREDIT or WM_CTLCOLORfor change font you can use m_Edit.SetFont(GetFont())

                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