Date Time Picket in a PropertyPage...
-
If I add a date time picker to my dialog resource for my property page the dialog fails to get created. If I create a standard dialog it all works fine. Any suggestions? Joshua Guy
Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com
-
If I add a date time picker to my dialog resource for my property page the dialog fails to get created. If I create a standard dialog it all works fine. Any suggestions? Joshua Guy
Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com
Yes. It's twisted. You have to create it yourself. See my (unrelated) article A File Open Dialog for the PocketPC 2002[^]. Here, in the sample code, you will find two classes:
CExDialog
andCExDlgEngine
. The last is intended to be used as a means to implement common functionalities in bothCDialog
andCPropertyPage
-derived classes. The method you want to use isCreateDateTime
. To use it, replace your date time picker with a static control with the same size and ID. In yourOnInitDialog
use this method like:CreateDateTime(this, m_dtcDate, IDC_DATE, DTS_SHORTDATEFORMAT);
Where
m_dtcDate
is declared in your property page class as aCDateTimeCtrl
. Voilá! -
Yes. It's twisted. You have to create it yourself. See my (unrelated) article A File Open Dialog for the PocketPC 2002[^]. Here, in the sample code, you will find two classes:
CExDialog
andCExDlgEngine
. The last is intended to be used as a means to implement common functionalities in bothCDialog
andCPropertyPage
-derived classes. The method you want to use isCreateDateTime
. To use it, replace your date time picker with a static control with the same size and ID. In yourOnInitDialog
use this method like:CreateDateTime(this, m_dtcDate, IDC_DATE, DTS_SHORTDATEFORMAT);
Where
m_dtcDate
is declared in your property page class as aCDateTimeCtrl
. Voilá!I had a feeling you would probably be the one to answer. ;-) Joshua Guy
Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com