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
questiondesignhelp
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.
  • S Offline
    S Offline
    sschilachi
    wrote on last edited by
    #1

    I have a Date Time Picker in a toolbar, and I have a derived class of CDateTimeCtrl managing the UI object. What I want to know is how do I specify which days in the month are bold when the user clicks the dropdown button to select the date? Any help would be greatly appreciated. Thanks

    P 1 Reply Last reply
    0
    • S sschilachi

      I have a Date Time Picker in a toolbar, and I have a derived class of CDateTimeCtrl managing the UI object. What I want to know is how do I specify which days in the month are bold when the user clicks the dropdown button to select the date? Any help would be greatly appreciated. Thanks

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

      You can call CMonthCalCtrl::SetDayState() (MESSAGE: MCM_SETDAYSTATE) to set them or better yet respond to the MCN_GETDAYSTATE message that the control sends when it needs new information. This usually occurs when the month changes. From my memory, there is an array of 32 bit values where each value represents a month and each bit represents a day. The on BITS cause the day to be bolded in the calendar if it has the MCS_DAYSTATE style set. There is all sorts of documentation on MSDN.

      "No matter where you go, there your are." - Buckaroo Banzai

      -pete

      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