SOLVED!!! For some reason I had the manifest file excluded from the build. Now it works :) :) – divB Jul 5 at 15:07
BCM_SETSHIELD does not work
-
02-06-2022 - |
Question
I am using MFC with VS2005 and I want to add the shield icon to a button. I created a control member variable for the button and in InitDialog I have
// BCM_SETSHIELD
this->m_ctrlStartact.SendMessage(0x1600+0x000C, 0, TRUE);
this->m_ctrlStartact.SetButtonStyle(BS_FLAT);
However, the shield does not appear. According to the Manifest, I have the correct version of the commctrl:
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
What can be the remaining problem?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow