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 Color Toolbar Button as in MS Word

Font Color Toolbar Button as in MS Word

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

    Hi, I want to have a toolbar button with features and exact look as is found in microsoft word font color toolbar button. The toolbar button should have a text "A" written as is there in MS Word. When clicked, it should drop a menu with available colors. If I select one of the colors the color should come as an underline mark under the letter "A". How do I do this in VC++. Barna

    A 1 Reply Last reply
    0
    • B BarnaKol

      Hi, I want to have a toolbar button with features and exact look as is found in microsoft word font color toolbar button. The toolbar button should have a text "A" written as is there in MS Word. When clicked, it should drop a menu with available colors. If I select one of the colors the color should come as an underline mark under the letter "A". How do I do this in VC++. Barna

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      The menu of available colors is also a tool window. You need to create this kind of customized toolbar which has a list of menu. (If not necessary, better use color Dialog Box) Call ShowControlBar(&m_colorToolBar, TRUE, FALSE); in your toolbar buttn click event handler. //m_colorToolBar should be of CToolBar Type. This will show your color toolbar. Now on each button(better to create colored button dynamically) click event handler, call ShowControlBar(&m_colorToolBar, FALSE, FALSE); at the end of the handler. Anurag Gandhi Bangalore, India.

      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