News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Date Time Picker

Started by d0d0, July 04, 2009, 04:29:06 PM

Previous topic - Next topic

d0d0

Howdy folks,

What would be the best way to retrieve time changes  when handling a DTN_DATETIMECHANGE notification from the DTP control?

1. Check for DTN_DATETIMECHANGE then retrieve the time from NMDATETIMECHANGE structure
2. Check for DTN_DATETIMECHANGE then SendMessage with DTM_GETSYSTEMTIME
3. Any other way?

Mucho gracias!

ToutEnMasm

You have it , Why search to get one another ?
Quote
typedef struct tagNMDATETIMECHANGE {
    NMHDR nmhdr;
    DWORD dwFlags;
    SYSTEMTIME st;
} NMDATETIMECHANGE, *LPNMDATETIMECHANGE;

d0d0

Hi TouteEnMasm

I'm trying to find out which method people generally use

Tedd

The first one - you're already GIVEN the time, there's no need to then go and ask for it again.


Man: Excuse me miss, would you know the correct time?
Woman: Yes, it's 1:32pm
Man: So what time is?
Woman: ...1:32pm...?
No snowflake in an avalanche feels responsible.

dedndave

at least she gives you the time of day - lol
she would prolly tell me "time for you to ask someone esle"

Quote1. Check for DTN_DATETIMECHANGE then retrieve the time from NMDATETIMECHANGE structure
2. Check for DTN_DATETIMECHANGE then SendMessage with DTM_GETSYSTEMTIME
3. Any other way?

i don't think d0d0 was intending to perform theses as steps in a sequence
rather, he was listing the different possible ways of achieving the goal