News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

WM_SETFONT behaviour changed between Win7 and Win10

Started by jj2007, July 15, 2024, 07:42:44 PM

Previous topic - Next topic

jj2007

invoke SendMessage, hControl, WM_SETFONT, hFont, 0

That worked fine in Windows 7, but Windows 10 requires 1 as redraw flag

NoCforMe

Not sure I understand; W10 requires redrawFlag=TRUE in order to set the font at all?

That certainly seems contrary to the documented behavior.
Assembly language programming should be fun. That's why I do it.

zedd151

Quote from: NoCforMe on July 16, 2024, 07:35:44 AMNot sure I understand;
It appears that Microsoft no longer believes in backward compatibility. I have not tested this myself, though. If that is correct, another reason to avoid Windows 10 and above.

NoCforMe

I'm going to dash off an angry letter to Raymond Chen!
Assembly language programming should be fun. That's why I do it.

NoCforMe

Quote from: zedd151 on July 16, 2024, 08:04:04 AMIf that is correct, another reason to avoid Windows 10 and above.

Windows 7 foreva!
Assembly language programming should be fun. That's why I do it.