date and time
-
Is there any default dialog window (like
CFileDialog
,CColorDialog
...CDialog
derived) to ask the user the desired date and time? :doh: I'd like to use it in this wayCTime Time;
{
CTimeDialog??? dlg;
if(dlg.DoModal()==IDOK){
Time=dlg.m_Time;
}else{
return;
}
}Needed something similar to the dialog that appears on double click on the win-xp clock (trayicon)
Russell
-
Is there any default dialog window (like
CFileDialog
,CColorDialog
...CDialog
derived) to ask the user the desired date and time? :doh: I'd like to use it in this wayCTime Time;
{
CTimeDialog??? dlg;
if(dlg.DoModal()==IDOK){
Time=dlg.m_Time;
}else{
return;
}
}Needed something similar to the dialog that appears on double click on the win-xp clock (trayicon)
Russell
Did you see The Ultimate Toolbox Date Time Picker Control[^]?
-
Is there any default dialog window (like
CFileDialog
,CColorDialog
...CDialog
derived) to ask the user the desired date and time? :doh: I'd like to use it in this wayCTime Time;
{
CTimeDialog??? dlg;
if(dlg.DoModal()==IDOK){
Time=dlg.m_Time;
}else{
return;
}
}Needed something similar to the dialog that appears on double click on the win-xp clock (trayicon)
Russell
There isn't one in the Common Dialog Box Library[^]. There is a Date and Time Picker[^] common control available to use in your own dialogs. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: