Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: CDateTimeCtrl in Windows 10 Pin
Richard MacCutchan16-Apr-17 21:35
mveRichard MacCutchan16-Apr-17 21:35 
QuestionRe: CDateTimeCtrl in Windows 10 Pin
David Crow17-Apr-17 3:54
David Crow17-Apr-17 3:54 
AnswerRe: CDateTimeCtrl in Windows 10 Pin
leon de boer17-Apr-17 17:41
leon de boer17-Apr-17 17:41 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124918-Apr-17 21:37
Member 150124918-Apr-17 21:37 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer19-Apr-17 9:56
leon de boer19-Apr-17 9:56 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124920-Apr-17 20:41
Member 150124920-Apr-17 20:41 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124920-Apr-17 21:14
Member 150124920-Apr-17 21:14 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer22-Apr-17 19:17
leon de boer22-Apr-17 19:17 
I would say the WM_SETFONT call is working the reason the last digits are not displaying is because it doesn't have enough room in the box. That is the default behaviour to drop the last word that doesn't fit in the area. Try making the box just a fraction wider or reduce the font size. It's highlighting another issue that the font is coming out slightly different size to before but that is probably not surprising. You could try the height in pixels as a minus sign that tells windows not to round the value to best value but make the value absolute. I don't know what details the original MFC used to select the font but you could look up the code section.

LOGFONT structure (Windows)[^]
< 0 = The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts.
In vino veritas

GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124927-Apr-17 23:01
Member 150124927-Apr-17 23:01 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer28-Apr-17 14:57
leon de boer28-Apr-17 14:57 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Member 150124913-Jun-17 23:06
Member 150124913-Jun-17 23:06 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Michael E. Jones20-Apr-17 1:02
Michael E. Jones20-Apr-17 1:02 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
leon de boer20-Apr-17 7:42
leon de boer20-Apr-17 7:42 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
Richard MacCutchan20-Apr-17 22:34
mveRichard MacCutchan20-Apr-17 22:34 
PraiseRe: CDateTimeCtrl in Windows 10 Pin
JamesA_Dev25-Apr-17 4:34
JamesA_Dev25-Apr-17 4:34 
GeneralRe: CDateTimeCtrl in Windows 10 Pin
UrbanBlues4-May-17 9:37
UrbanBlues4-May-17 9:37 
AnswerRe: CDateTimeCtrl in Windows 10 Pin
JamesA_Dev25-Apr-17 21:58
JamesA_Dev25-Apr-17 21:58 
AnswerRe: CDateTimeCtrl in Windows 10 Pin
JamesA_Dev13-Jun-17 23:02
JamesA_Dev13-Jun-17 23:02 
QuestionSetting compiler name in win32.mak Pin
ForNow16-Apr-17 11:20
ForNow16-Apr-17 11:20 
AnswerRe: Setting compiler name in win32.mak Pin
Richard MacCutchan16-Apr-17 21:33
mveRichard MacCutchan16-Apr-17 21:33 
GeneralRe: Setting compiler name in win32.mak Pin
ForNow19-Apr-17 5:28
ForNow19-Apr-17 5:28 
QuestionHelp Pin
Member 1302311816-Apr-17 3:13
Member 1302311816-Apr-17 3:13 
AnswerRe: Help Pin
Richard MacCutchan16-Apr-17 3:46
mveRichard MacCutchan16-Apr-17 3:46 
GeneralRe: Help Pin
Member 1302311816-Apr-17 4:00
Member 1302311816-Apr-17 4:00 
GeneralRe: Help Pin
Richard MacCutchan16-Apr-17 4:06
mveRichard MacCutchan16-Apr-17 4:06 

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.