如何在Visual C ++中显示我自己选择的消息框图标或我自己的PNG [英] how can I show messagebox icon of my own choice or my own PNG in Visual C++
问题描述
MessageBox ICON |的 AfxMessageBox的即可。我正在使用
Visual Studio 2015 ,以及基于visual c ++ mfc
的项目。我想显示自己的 PNG 图片或其他图标代替
MB_ICONASTERICKS , MB_ICONWARNING , MB_ICONINFORMATION 等等等待答案!
你可以使用"MessageBoxIndirect"使用自己的斜角,图标,....创建自己的消息框。
参见:
https://msdn.microsoft.com/en-us/library/ms645511(VS.85).aspx
https://msdn.microsoft.com/en-us/library/ms645402(v = vs.85).aspx
问候,
David
Hey there! I want to discuss about Visual C++ MessageBox ICONs | AfxMessageBox. I'm using Visual studio 2015, and visual c++ mfc based projects. I want to show my own PNG image or Other icon in place of MB_ICONASTERICKS, MB_ICONWARNING, MB_ICONINFORMATION, etc. Waiting for answer!
Hi,
you could use "MessageBoxIndirect" to make your own message box with own tiltle, icon, ....
See:
https://msdn.microsoft.com/en-us/library/ms645511(VS.85).aspx
https://msdn.microsoft.com/en-us/library/ms645402(v=vs.85).aspx
Regards,
David
这篇关于如何在Visual C ++中显示我自己选择的消息框图标或我自己的PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!