I have a program where the Menu Bar Font unexpectedly changes.
See attached pictures.
Is there a command I can use to reset the Font on the Menu Bar ?
Normally the menu font is set at system level, not program level. Did you make the menu ownerdrawn or do you use system drawn?
Wilko
Quote from: Wilko Verweij on January 28, 2012, 03:04:51 PM
Normally the menu font is set at system level, not program level. Did you make the menu ownerdrawn or do you use system drawn?
Wilko
No. Nothing special, it is just a standard FF Menu Bar
What do you do when the font changes? Any systematic occurrences? What are other applications doing?
Wilko
Quote from: Wilko Verweij on January 28, 2012, 04:21:33 PM
What do you do when the font changes? Any systematic occurrences? What are other applications doing?
Wilko
I think I found the code that is causing the problem. But I can't think why it should cause a problem. Here's the code. If I comment out this code then the problem
does not occur. Why would this code cause a problem? And what can I do to fix the problem?
stat = ShellExecute (%hwnd_Desktop, "Open", "RSIclient", $Nul, $Nul, %SW_ShowNormal)
The RSIclient is a
"shortcut" . I have to launch RSIclient.exe using the "shortcut" to preserve it's working directory.
Don't know why this would happen. I first thought maybe you used the menu bar handle by mistake in an earlier font change call to a control. Firefly doesn't change the font of the menu bar. It uses the system font for menus.
Things like that, and worse, have hapenned to me using non High DPI aware legacy applications in Windows 7 with a DPI of more than 96. For example, using the lagacy SED editor. I wrote CSED, that is fully High DPI aware, in part to have an editor that worked correctly and in part to test CWindow and other classes and wrappers. It was my first experiment with High DPI. Previously I wasn't even aware of any problems because I only had an old 600x800 monitor.