disable/grey out date time picker
-
i was wondering how do you grey-out / disable the date time picker, is there a flag that can be changed say using a send message? i have my date time picker as a CDateTimeCtrl type
-
i was wondering how do you grey-out / disable the date time picker, is there a flag that can be changed say using a send message? i have my date time picker as a CDateTimeCtrl type
Disable:
CDateTimeCtrl yourCtrl;
yourCtrl.EnableWindow(FALSE);Enable:
CDateTimeCtrl yourCtrl;
yourCtrl.EnableWindow(TRUE); // sorry, this said FALSE before, should have read TRUECDateTimeCtrl derives from CWnd, which exposes the EnableWindow function, hence you can use EnableWindow on all CWnd derived objects
- Dy -- modified at 9:45 Tuesday 11th April, 2006
-
i was wondering how do you grey-out / disable the date time picker, is there a flag that can be changed say using a send message? i have my date time picker as a CDateTimeCtrl type
-
thanks all, enablewindow works perfect, dont know why i didnt think of that!! i was trying to the the EN_******** to use with a sendmessage!!
-
thanks all, enablewindow works perfect, dont know why i didnt think of that!! i was trying to the the EN_******** to use with a sendmessage!!