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

CDateTimeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 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.
  • D Offline
    D Offline
    Djibril
    wrote on last edited by
    #1

    Do you know how to change the background color of a CDateTimeCtrl control ? Thanks. Where there is a WISH, there is a WILL.

    J 1 Reply Last reply
    0
    • D Djibril

      Do you know how to change the background color of a CDateTimeCtrl control ? Thanks. Where there is a WISH, there is a WILL.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Have you tried CDateTimeCtrl::SetMonthCalColor? It allows great flexibility on which colors you can change. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      D 2 Replies Last reply
      0
      • J Joaquin M Lopez Munoz

        Have you tried CDateTimeCtrl::SetMonthCalColor? It allows great flexibility on which colors you can change. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        D Offline
        D Offline
        Djibril
        wrote on last edited by
        #3

        Silly me. I took a look at the help on CDateTimeCtrl but I did not see this method. Thank you. That should do the job. I try it right away. Thanks. Where there is a WISH, there is a WILL.

        1 Reply Last reply
        0
        • J Joaquin M Lopez Munoz

          Have you tried CDateTimeCtrl::SetMonthCalColor? It allows great flexibility on which colors you can change. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          D Offline
          D Offline
          Djibril
          wrote on last edited by
          #4

          Too bad. This is not really what I needed. SetMonthCalColor() only applies to the calendar that pops up when you click on the combo box'x arrow. What I want to change is the background color of the EditCtrl-like control of the CDateTimeCtrl. Thanks anyways. Where there is a WISH, there is a WILL.

          J 1 Reply Last reply
          0
          • D Djibril

            Too bad. This is not really what I needed. SetMonthCalColor() only applies to the calendar that pops up when you click on the combo box'x arrow. What I want to change is the background color of the EditCtrl-like control of the CDateTimeCtrl. Thanks anyways. Where there is a WISH, there is a WILL.

            J Offline
            J Offline
            Joaquin M Lopez Munoz
            wrote on last edited by
            #5

            Maybe (not sure) this color can be changed the same way the background color of other controls (CStatics, CEdits) is. Check §4.9 of Mike Dunn's C++ FAQ. Good luck! Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

            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