Date Time Picker In Windows Mobile
Hello all,
I want to put the date time picker for the Windows Mobile 6.0 device application.
I am using Win32 and Visual studio 2005.
Using ToolBox of VS 2005, I put the Date time picker control in my dialog.
The application compiles and builds perfectly, and runs well too.
But whenever I open that particular dialog (with DT Picker) on emulator or on device, it fails to open.
If I remove the DT Picker then dialog successfully opened.
If I use the same with Pocket PC 2003 then also it succeed.
What is the reason that I am not able to put the dialog in WinMob 6 application?
Is there any way to achieve this?
Thanks In Advance.
Regards,
Kavit Patel.
Date Time Picker In Windows Mobile
Hi,
Please let me know, how to solve the problem?
Regards,
Kavit.
Re: Date Time Picker In Windows Mobile
For anybody that stumbles here as I did.
You must add the following code to your DialogProc:
#include "commctrl.h"
.....
//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_DATE_CLASSES;
InitCommonControlsEx(&icex);
......
}
Re: Date Time Picker In Windows Mobile
Quote:
Originally Posted by
apbrown
For anybody that stumbles here as I did.
You must add the following code to your DialogProc:
#include "commctrl.h"
.....
//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_DATE_CLASSES;
InitCommonControlsEx(&icex);
......
}
are you sure the OP still needs your reply? after about eight years?