News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Date control

Started by ragdog, December 02, 2012, 05:18:35 AM

Previous topic - Next topic

ragdog

Hello

I have a question to a date control work this on a Messages Like En_Change or anything?

  invoke   SendDlgItemMessage, hWnd, 1001, DTM_GETSYSTEMTIME, 0, addr sSystemTime



    .elseif uMsg==WM_COMMAND
  mov eax,wParam
     .IF ax==1001
       shr eax,16
     .IF ax==EN_UPDATE
         movzx eax, sSystemTime.wYear
            movzx ebx, sSystemTime.wMonth
            movzx   edx ,sSystemTime.wDay
        invoke wsprintf,addr OutBuffer,addr form,eax,ebx,edx
        invoke SetDlgItemText,hWnd,1002,addr OutBuffer
        .endif
   .ENDIF



I have look on Msdn but not any solution Found

Regards..

fearless

Its WM_NOTIFY stuff, send as date time picker notifications. (http://msdn.microsoft.com/en-us/library/windows/desktop/bb761726%28v=vs.85%29.aspx#Date_notification_messages)

Notification code Description
DTN_CLOSEUP Indicates that the drop-down month calendar is about to be removed.
DTN_DATETIMECHANGE Signals a change within the DTP control.
DTN_DROPDOWN Indicates that the drop-down month calendar is about to be displayed.
DTN_FORMAT Requests text to display in a portion of the format string described as a callback field.
DTN_FORMATQUERY Requests information about the maximum allowable size of the text to be displayed in a callback field.
DTN_USERSTRING Signals the end of a user's edit operation within the control. This notification is sent only by DTP controls that use the DTS_APPCANPARSE style.
DTN_WMKEYDOWN Signals that the user has pressed a key in a callback field of the DTP control.

DTN_DATETIMECHANGE looks closest to what your looking for i think

ragdog

WM_NOTIFY  ::)

My eyes oh oh :lol:

Thank you