且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 c++ win32 API 的对话框中设置图像?

更新时间:2023-08-29 22:56:28

最简单的方法是覆盖窗口的 WM_PAINT 并在该点(在 BeginPaint 和 EndPaint 之间)调用绘制位图

The easiest way is to override the WM_PAINT for the window and paint the bitmap at that point (between the BeginPaint and EndPaint) calls

这里有一个基于 MFC 的示例:

There is an MFC based example here:

http://www.programmersheaven.com/mb/mfc_coding/113034/113034/how-do-i-set-a-background-picture-in-a-dialog-box-/