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. Font of command buttons on property pages

Font of command buttons on property pages

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 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.
  • N Offline
    N Offline
    Neeraj Sinha
    wrote on last edited by
    #1

    Hi Can you please tell me how the default font of command buttons like NEXT,BACK,FINISH and CANCEL can be changed?

    Best Regards Neeraj Sinha

    P 1 Reply Last reply
    0
    • N Neeraj Sinha

      Hi Can you please tell me how the default font of command buttons like NEXT,BACK,FINISH and CANCEL can be changed?

      Best Regards Neeraj Sinha

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Consider using CWnd:::SetFont, for buttons of your interest. You can use GetDlgItem to access those buttons.


      Prasad MS MVP -  VC++

      N 1 Reply Last reply
      0
      • P prasad_som

        Consider using CWnd:::SetFont, for buttons of your interest. You can use GetDlgItem to access those buttons.


        Prasad MS MVP -  VC++

        N Offline
        N Offline
        Neeraj Sinha
        wrote on last edited by
        #3

        Thanks for your reply but what ID should I pass in the parameter of GetDlgItem(), as we do not add the buttons from the resource.

        With Regards Neeraj Sinha

        P 1 Reply Last reply
        0
        • N Neeraj Sinha

          Thanks for your reply but what ID should I pass in the parameter of GetDlgItem(), as we do not add the buttons from the resource.

          With Regards Neeraj Sinha

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          There are standard ids for cancel , help,ok button(IDCANCEL,IDHELP,IDOK). About other buttons, you may need to take help of spy utility to find their ids.


          Prasad MS MVP -  VC++

          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