CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Posts
    2

    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.

  2. #2
    Join Date
    Aug 2009
    Posts
    2

    Date Time Picker In Windows Mobile

    Hi,

    Please let me know, how to solve the problem?

    Regards,
    Kavit.

  3. #3
    Join Date
    Apr 2017
    Posts
    1

    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);
    ......
    }

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Date Time Picker In Windows Mobile

    Quote Originally Posted by apbrown View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured