Displaying The time Zone
-
I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance
-
I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance
I'm not very clear about your question, but if you want to be notified when the time zone changes, look at
WM_TIMECHANGE
.«_Superman_»
-
I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance
GetTimeZoneInformation
will give you the (+900) part - but not the city list. I suspect that only lives in the common dialog used, so you may be out of luck. Iain.Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
GetTimeZoneInformation
will give you the (+900) part - but not the city list. I suspect that only lives in the common dialog used, so you may be out of luck. Iain.Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
For now i think that can be enough. Can you give me any sample code using that function.
Not without reading the documentation page, calling the function, looking at the contents of the TIME_ZONE_INFORMATION. All of which you can do yourself. (It's not a function I've used, it's one I found on msdn) Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...