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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. radiobutton/checkbutton query

radiobutton/checkbutton query

Scheduled Pinned Locked Moved C / C++ / MFC
databasegraphicsjsontutorialquestion
3 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.
  • B Offline
    B Offline
    Bill Gates Antimatter Particle
    wrote on last edited by
    #1

    It is easy to access the dc of a radiobutton / checkbutton - Via onctlcolour() / WM_CTLCOLORSTATIC. However who can tell me how to override the default drawing of the WHITE CIRCLE / SQUARE and its CHECK / TICK ONLY. Where the hell is it drawn and how? I want to be able to change the colour of the dot in the radio button or tick in a checkbox while leaving the rest of its processing as default. I know how I could implement this with an owner draw class and bitmaps, but I cant find ANY information as to how the default drawing occurs. Where is it hidden? Does ANYBODY know :confused: "Life begins at 140"

    M N 2 Replies Last reply
    0
    • B Bill Gates Antimatter Particle

      It is easy to access the dc of a radiobutton / checkbutton - Via onctlcolour() / WM_CTLCOLORSTATIC. However who can tell me how to override the default drawing of the WHITE CIRCLE / SQUARE and its CHECK / TICK ONLY. Where the hell is it drawn and how? I want to be able to change the colour of the dot in the radio button or tick in a checkbox while leaving the rest of its processing as default. I know how I could implement this with an owner draw class and bitmaps, but I cant find ANY information as to how the default drawing occurs. Where is it hidden? Does ANYBODY know :confused: "Life begins at 140"

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Those weren't made to be customizable (well, pre-XP at least). The button part is drawn by the common controls library. In XP it's handled by the visual styles ("themes") system. --Mike-- http://home.inreach.com/mdunn/ While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate. :love: your :bob: with :vegemite: and :beer: Sonork - 100.10414 AcidHelm

      1 Reply Last reply
      0
      • B Bill Gates Antimatter Particle

        It is easy to access the dc of a radiobutton / checkbutton - Via onctlcolour() / WM_CTLCOLORSTATIC. However who can tell me how to override the default drawing of the WHITE CIRCLE / SQUARE and its CHECK / TICK ONLY. Where the hell is it drawn and how? I want to be able to change the colour of the dot in the radio button or tick in a checkbox while leaving the rest of its processing as default. I know how I could implement this with an owner draw class and bitmaps, but I cant find ANY information as to how the default drawing occurs. Where is it hidden? Does ANYBODY know :confused: "Life begins at 140"

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        Bill Gates Antimatter Particle wrote: Bill Gates Antimatter Particle Wait till John Simmons sees your nick! Just wait!!! Nish :-):-):-):-):-):-):-):-) Sonork ID 100.9786 voidmain www.busterboy.org Nish is a BIG fan of Goran Ivanisevic

        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