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. datetimecontrol

datetimecontrol

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

    Hi, is there any technics (owner draw class, function, subclass method and so on) to change backgroud color of datetimecontrol Thank you

    viliam

    D 1 Reply Last reply
    0
    • V viliam

      Hi, is there any technics (owner draw class, function, subclass method and so on) to change backgroud color of datetimecontrol Thank you

      viliam

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Check out the WM_CTLCOLOR, and related, messages. If that does not work, you might look at the DTM_SETMCCOLOR message. Or, subclass the control and handle the WM_ERASEBKGND and WM_PAINT messages.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      V 1 Reply Last reply
      0
      • D David Crow

        Check out the WM_CTLCOLOR, and related, messages. If that does not work, you might look at the DTM_SETMCCOLOR message. Or, subclass the control and handle the WM_ERASEBKGND and WM_PAINT messages.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        V Offline
        V Offline
        viliam
        wrote on last edited by
        #3

        WM_CONTROL is not called for this type of control :-(

        viliam

        D V 2 Replies Last reply
        0
        • V viliam

          WM_CONTROL is not called for this type of control :-(

          viliam

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          viliam wrote:

          WM_CONTROL is not called for this type of control

          I've not ever heard of that message. Is it new?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          1 Reply Last reply
          0
          • V viliam

            WM_CONTROL is not called for this type of control :-(

            viliam

            V Offline
            V Offline
            viliam
            wrote on last edited by
            #5

            Sorry, my typing error. I should be WM_CTLCOLOR

            viliam

            R 1 Reply Last reply
            0
            • V viliam

              Sorry, my typing error. I should be WM_CTLCOLOR

              viliam

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              viliam wrote:

              Sorry, my typing error.

              Don't "type" your code here. Please copy and paste!

              Workout progress:
              Current arm size: 14.4in
              Desired arm size: 18in
              Next Target: 15.4in by Dec 2010

              Current training method: HIT

              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