You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if mt tool is not called (no manifest file), InitCommonControlsEx will fail but GetLastError() is 0 (no error), in this case, there will be a very confusing log like this: error message of no errors:
Only ICC_STANDARD_CLASSES causes the issue 1) above, if ICC_STANDARD_CLASSES is not used at all, mt does not matter, InitCommonControlsEx will always succeed.
By its name, ICC_STANDARD_CLASSES seems to have effects on buttons at lease, but at least to "UICatalog" UI, all controls including buttons are initialized correctly without ICC_STANDARD_CLASSES.
So maybe we can remove ICC_STANDARD_CLASSES? It will make InitCommonControlsEx to always succeed (with or without mt)
and have no bad effect on the buttons and other controls.
The text was updated successfully, but these errors were encountered:
There are small UI differences IIRC between the two path. mt should be called on the binary, especially for modern Windows applications. The problem is that the SPM tooling doesn't have a good extension point to allow us to ensure that mt is run at the appropriate time. This is not a problem with CMake.
Hi,
This is a follow-up issue of #645 (comment).
I played with the code a little bit:
I found 2 results:
mt
tool is not called (no manifest file),InitCommonControlsEx
will fail butGetLastError()
is 0 (no error), in this case, there will be a very confusing log like this: error message of no errors:If
mt
tool is called, the error message is gone.ICC_STANDARD_CLASSES
causes the issue 1) above, ifICC_STANDARD_CLASSES
is not used at all,mt
does not matter,InitCommonControlsEx
will always succeed.By its name,
ICC_STANDARD_CLASSES
seems to have effects on buttons at lease, but at least to "UICatalog" UI, all controls including buttons are initialized correctly withoutICC_STANDARD_CLASSES
.So maybe we can remove
ICC_STANDARD_CLASSES
? It will makeInitCommonControlsEx
to always succeed (with or withoutmt
)and have no bad effect on the buttons and other controls.
The text was updated successfully, but these errors were encountered: