Win10 Custom Scaling | SetMenuIcon() Exception "Icons must be 16x16 pixels in size."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a user that increased their Window 10 Display, Custom Scaling (Text Height) % in OS Settings, that is now prompting them with an "Icons must be 16x16 pixels in size." SetMenuIcon() exception at AutoCAD/Civil 3D launch:
SetMenuIcon(blockMenuItem, "Block", "RCDATA_16_BLOCK");
Putting this in a Try-Catch block is simple enough - but AutoCAD application still does not load the icons - even though they're coming from internal ACAD.cuix icons (or the respective native icon resources) via SetMenuIcon() call with native "RCDATA_16_*" icons.
The native Commands in CUI (Ribbon, Menu, Toolbar, etc) still load fine - which means it is okay to use the native icon resources - but they won't load for SetMenuItem()?
Windows Custom Scaling isn't exactly new, so someone has to have seen something on how to fix this (besides just disable Custom Scaling); I'm just not finding anything useful to resolve this.
Please advise.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps