1

Topic: cdatetimectrl value is more than 24 hours

Good afternoon. How to force cdatetimectrl value where hours will be more than 24 For example, 28:00:00 - should mean 4 o'clock in the morning of next day... The fact Interests how to force cdatetimectrl printat/show value 28 in hours.

2

Re: cdatetimectrl value is more than 24 hours

Hello, meerius, you wrote: M> How to force cdatetimectrl value where hours will be more than 24 M> For example, 28:00:00 - should mean 4 o'clock in the morning of next day... M> the fact Interests how to force cdatetimectrl printat/show value 28 in hours. To add DTS_APPCANPARSE style: https://msdn.microsoft.com/en-us/librar … p/bb761728 (v=vs.85).aspx to Process DTN_USERSTRING notification: https://msdn.microsoft.com/en-us/librar … p/bb761745 (v=vs.85).aspx

3

Re: cdatetimectrl value is more than 24 hours

Hello, VladFein, you wrote: VF> Hello, meerius, you wrote: M>> How to force cdatetimectrl value where hours will be more than 24 M>> For example, 28:00:00 - should mean 4 o'clock in the morning of next day... M>> the fact Interests how to force cdatetimectrl printat/show value 28 in hours. VF> to add DTS_APPCANPARSE style: https://msdn.microsoft.com/en-us/librar … p/bb761728 (v=vs.85).aspx VF> to Process DTN_USERSTRING notification: https://msdn.microsoft.com/en-us/librar … p/bb761745 (v=vs.85).aspx the Output agent on DTN_USERSTRING works after focus abandons a data entry field. At an insertion 28 value is not accepted , writes 8 instead of 28, all values to 24 work normally.... I Do so: ON_NOTIFY_REFLECT (DTN_USERSTRING, OnUserString)//I am inherited from cdatetimectrl void Form_VideoTimeCtrl:: OnUserString (NMHDR* pNMHDR, LRESULT* pResult) {NMDATETIMESTRING* pDateInfo = (NMDATETIMESTRING *) pNMHDR; CString strInput = pDateInfo-> pszUserString; pDateInfo-> dwFlags = GDT_VALID;}

4

Re: cdatetimectrl value is more than 24 hours

Hello, meerius, you wrote: M> At an insertion 28 value is not accepted , writes 8 instead of 28, all values to 24 work normally.... I can print "28", OnUserString () receives a line "28:...", but  it is then overwritten by the previous value. http://files.rsdn.org/21374/DateTime.png probably, it is necessary to enumerate at 4 o'clock tomorrow and SetTime (). Or you want, what "28" would remain in control? There are no so much hours per days... Another Can  approaches? What functionality is necessary?

5

Re: cdatetimectrl value is more than 24 hours

Hello, VladFein, you wrote: VF> I can print "28", OnUserString () receives a line "28:...", but  it is then overwritten by the previous value. VF> http://files.rsdn.org/21374/DateTime.png VF> probably, it is necessary to enumerate at 4 o'clock tomorrow and SetTime (). VF> Or you want, what "28" would remain in control? There are no so much hours per days... VF> another Can  approaches? What functionality is necessary? It is necessary, that 28 there was in control Another  too approaches. Here User Stori: If the station is from 6am to 6am the next day and the user search for titles that are between 28:00:00; 00 and 29:00:00; 00 on March 28th, the result will be the title for which scheduled start time is between 4am and 5am on March 29th. , it is necessary to allow  to enter 28:00:00; 00 and to be able to show it. ("28" should remain in control) Sushchestvuishchy  is inherited from cdatetimectrl, but it is possible to replace with something another. COleDateTime, for example, or something similar.

6

Re: cdatetimectrl value is more than 24 hours

Hello, meerius, you wrote: M> Bobshchem, it is necessary to allow  to enter 28:00:00; 00 and to be able to show it. ("28" should remain in control) M> Sushchestvuishchy  is inherited from cdatetimectrl, but it is possible to replace with something another. M> COleDateTime, for example, or something similar. COleDateTime is not . Here nearby MaskedEdit considered - I there would look. And it is impossible push back on that story? Reason: There is no 28:00:00; 00 and 29:00:00; 00 on March 28th...

7

Re: cdatetimectrl value is more than 24 hours

Hello, VladFein, you wrote: VF> COleDateTime is not . Yes-yes, all is correct, I confused Here nearby MaskedEdit considered - I there would look. I will try, . Thanks.