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. Increasing font size of text in static text box

Increasing font size of text in static text box

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

    Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce

    L stefanmihaimogaS K H 4 Replies Last reply
    0
    • V VCProgrammer

      Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce

      L Offline
      L Offline
      leonigah
      wrote on last edited by
      #2

      What is static Text Box?

      Nigah M Manzoor

      1 Reply Last reply
      0
      • V VCProgrammer

        Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce

        stefanmihaimogaS Offline
        stefanmihaimogaS Offline
        stefanmihaimoga
        wrote on last edited by
        #3

        Hi, please have a look to Hans Dietrich's XColorStatic[^] class. Regards, Mihai Moga

        1 Reply Last reply
        0
        • V VCProgrammer

          Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce

          K Offline
          K Offline
          Karthik Kalyanasundaram
          wrote on last edited by
          #4

          I assume that you are mentioning about changing the font size of the STATIC control. You can simply use SetFont() function on the Static controls.

               CFont font;
          font.CreateFont( 50, 0, 0, 0, FW\_BOLD, 0, 0, 0, 0, 0, 0, 0, 0, \_T("Times New Roman") );
          CWnd\* pWnd = GetDlgItem( IDC\_STATIC1 );
          if( pWnd )
          {
          	pWnd->SetFont( &font );
          	font.Detach();
          }
          

          Do more work Make more mistakes Learn more things

          modified on Saturday, June 28, 2008 12:15 PM

          1 Reply Last reply
          0
          • V VCProgrammer

            Hi all, I have made a dialog based application. In that i have made a static text box. What i want to know is how to increase font size of text written in static text box.... Thanks in advanvce

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

            I think this[^] article is helpfuls for you.

            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