DatePicker and mcm_SETDAYSTATE

  • Thread starter Thread starter kxa422
  • Start date Start date
K

kxa422

Hello,

Is there someone who have a working sample of using the message
mcm_SETDAYSTATE against a datepicker.
Each time I try to use it, I've got 0 as return meaning that it's doesn't
work.
 
kxa422 said:
Hello,

Is there someone who have a working sample of using the message
mcm_SETDAYSTATE against a datepicker.
Each time I try to use it, I've got 0 as return meaning that it's
doesn't work.

There's so much wrong with the question, I'm just going to skip to what
I think is the information you really want:

Use the MonthCalendar control, not the DateTimePicker. And use the
built-in BoldedDates property or the AddBoldedDate() method, rather than
trying to mess around with an unmanaged window message that probably
doesn't really do exactly what you want anyway.

Any time you find yourself trying to hack past the managed API by
sending a window message directly to the unmanaged window, you're
probably doing it wrong.

Pete
 
Back
Top