Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:04
Tom Wright2-Jun-03 12:04 
GeneralRe: Dialog App Question Pin
User 66582-Jun-03 11:47
User 66582-Jun-03 11:47 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 11:56
Tom Wright2-Jun-03 11:56 
GeneralRe: Dialog App Question Pin
User 66582-Jun-03 12:42
User 66582-Jun-03 12:42 
GeneralRe: Dialog App Question Pin
Tom Wright2-Jun-03 12:21
Tom Wright2-Jun-03 12:21 
GeneralRe: Dialog App Question Pin
sunjohn2-Jun-03 18:44
sunjohn2-Jun-03 18:44 
GeneralDisplaying time for different time zones Pin
dennisV2-Jun-03 10:50
dennisV2-Jun-03 10:50 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 3:56
David Chamberlain3-Jun-03 3:56 
I had to do something similar at one time with software on an aircraft that could traverse multiple time zones, although limited to those in the US. Since the computer itself had only one time zone within which it lived, we always knew the time within its own zone. This can be found with a CTime object and the member function GetCurrentTime(). This CTime object can be formatted with the member function Format(), and the time zone can be parsed out, if needed.

Based on that known time zone, I made a drop-down list of US time zones by name that converted into hour offsets from the computer's zone. If they wanted local time to be referenced in Eastern Time, which they selected from the drop-down list, then this converted to adding 2 hours to the computer time before displaying.

It was fairly cheap and easy, but it did the job.

Good luck,
Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 6:51
dennisV3-Jun-03 6:51 
GeneralRe: Displaying time for different time zones Pin
David Chamberlain3-Jun-03 7:10
David Chamberlain3-Jun-03 7:10 
GeneralRe: Displaying time for different time zones Pin
dennisV3-Jun-03 7:21
dennisV3-Jun-03 7:21 
Generalcreating a header blueprint that will be written to memory Pin
johnstonsk2-Jun-03 10:41
johnstonsk2-Jun-03 10:41 
General.rc files and encoding Pin
Jon Sagara2-Jun-03 10:09
Jon Sagara2-Jun-03 10:09 
GeneralCMenu question Pin
Anonymous2-Jun-03 9:59
Anonymous2-Jun-03 9:59 
GeneralRe: CMenu question Pin
Maximilien2-Jun-03 10:08
Maximilien2-Jun-03 10:08 
GeneralSerial Communication Problem Pin
GeneMcAulpin2-Jun-03 9:40
GeneMcAulpin2-Jun-03 9:40 
GeneralRe: Serial Communication Problem Pin
Roger Allen3-Jun-03 2:41
Roger Allen3-Jun-03 2:41 
QuestionHow to adapt window size to screen resolution Pin
gmlnd2-Jun-03 8:58
gmlnd2-Jun-03 8:58 
AnswerRe: How to adapt window size to screen resolution Pin
Dominik Reichl2-Jun-03 9:44
Dominik Reichl2-Jun-03 9:44 
GeneralRe: How to adapt window size to screen resolution Pin
gmlnd2-Jun-03 10:00
gmlnd2-Jun-03 10:00 
GeneralDisabling checkbox Pin
dorkshoe2-Jun-03 8:55
dorkshoe2-Jun-03 8:55 
GeneralRe: Disabling checkbox Pin
Dominik Reichl2-Jun-03 9:42
Dominik Reichl2-Jun-03 9:42 
GeneralRe: Disabling checkbox Pin
abc8762-Jun-03 9:56
abc8762-Jun-03 9:56 
GeneralRe: Disabling checkbox Pin
Dominik Reichl2-Jun-03 20:35
Dominik Reichl2-Jun-03 20:35 
GeneralRe: Disabling checkbox Pin
abc8762-Jun-03 9:50
abc8762-Jun-03 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.