Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Date Time Picket in a PropertyPage...

Date Time Picket in a PropertyPage...

Scheduled Pinned Locked Moved Mobile
comquestionlearning
3 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joshua Guy
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • J Joshua Guy

      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

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      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 and CExDlgEngine. The last is intended to be used as a means to implement common functionalities in both CDialog and CPropertyPage-derived classes. The method you want to use is CreateDateTime. To use it, replace your date time picker with a static control with the same size and ID. In your OnInitDialog use this method like:

      CreateDateTime(this, m_dtcDate, IDC_DATE, DTS_SHORTDATEFORMAT);

      Where m_dtcDate is declared in your property page class as a CDateTimeCtrl. Voilá!

      J 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        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 and CExDlgEngine. The last is intended to be used as a means to implement common functionalities in both CDialog and CPropertyPage-derived classes. The method you want to use is CreateDateTime. To use it, replace your date time picker with a static control with the same size and ID. In your OnInitDialog use this method like:

        CreateDateTime(this, m_dtcDate, IDC_DATE, DTS_SHORTDATEFORMAT);

        Where m_dtcDate is declared in your property page class as a CDateTimeCtrl. Voilá!

        J Offline
        J Offline
        Joshua Guy
        wrote on last edited by
        #3

        I had a feeling you would probably be the one to answer. ;-) Joshua Guy


        Sonork ID: 100.9944 ICQ: 519642 Hotmail: JoshuaJGuy@hotmail.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups