|
-
August 7th, 2009, 08:07 AM
#1
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.
-
August 10th, 2009, 12:18 AM
#2
Date Time Picker In Windows Mobile
Hi,
Please let me know, how to solve the problem?
Regards,
Kavit.
-
April 25th, 2017, 12:10 PM
#3
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);
......
}
-
April 25th, 2017, 12:27 PM
#4
Re: Date Time Picker In Windows Mobile
 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?
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|