Skip to main content
gamedev.net
🔒 Locked

CDateTimeCtrl question

Started by calvinhobbs Jun 24, 2004 at 2:43 PM 2 replies 1k views
Original Post
calvinhobbs
calvinhobbs
is there anyway we can format the CDateTimeCtrl to have milliseconds field? .. "00:00:00:000" ? ... or whats the best way to have ctrl to represent a milliseconds field ? .. tx ..
-calvin
felisandria
felisandria
I don't believe that's possible in a standard CDateTimeCtrl... if you look it up then the best resolution you can get on SetFormat is seconds, and that's if you're using DTS_TIMEFORMAT.
It would probably be easier to just do a custom control than override, especially if it's just an output.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
calvinhobbs
calvinhobbs

custom control! .. alrighty .. tx fel ..
-calvin
felisandria
felisandria
To elaborate: If it's just an output then format it right yourself. If it allows input then make a custom control. You can override keystroke handling to make the user do anything you want.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.