sparafucile17
Programmer
Hello all,
I was wondering if anyone knew of a way to add an Icon/Bitmap to a Cbutton? I have already included the icon into my project as a resource: IDI_CHECKMARK. I need to find a way to load this into the Button control m_SaveBtn.
I know that I can use the member func: SetIcon() which takes a HICON parameter. The question is how do I get the resource IDI_CHECKMARK into the HICON format?
And if I can do this, will SetIcon() work. I saw an MSDN article (142226) that says this function will only work in Windows 95. Is this true?
Any other ideas are welcome.
Regards,
Jeff
I was wondering if anyone knew of a way to add an Icon/Bitmap to a Cbutton? I have already included the icon into my project as a resource: IDI_CHECKMARK. I need to find a way to load this into the Button control m_SaveBtn.
I know that I can use the member func: SetIcon() which takes a HICON parameter. The question is how do I get the resource IDI_CHECKMARK into the HICON format?
And if I can do this, will SetIcon() work. I saw an MSDN article (142226) that says this function will only work in Windows 95. Is this true?
Any other ideas are welcome.
Regards,
Jeff