Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很难在按钮中添加图像和文本..我知道这可以通过启用具有位图按钮类的所有者绘制功能来完成..但我不想那样..我还有其他方法吗可以在不绘制文本的情况下添加图像和文本吗?
由于您使用的是 MFC Feature Pack,因此只需将您的按钮转换为一个CMFCButton类。然后您可以调用CMFCButton::SetImage添加图像。
CMFCButton
CMFCButton::SetImage