thank you in advance.
I'm developing an application in Win32 C++ which its main window comes up from a resource file because it's easier to place controls.
to that I use CreateDialog a statement
The problem is, I don't achieve to put it an Icon such as I could with CreateWindow statement at the WNDCLASSEX sctructure.
does somebody know the way to get a dialog with that top-left-corner Icon?
Thanks
您可以让应用程序通过将显示在对话框的标题栏中的图标WS_SYSMENU
和WS_CAPTION
样式对话框模板,并发送WM_SETICON
响应从对话框过程内消息WM_INITDIALOG
消息。
CreateDialog
returns the window handle of the dialog. Send that window WM_SETICON
messages to specify the icon for the window. Or indeed send the messages in response to WM_INITDIALOG
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.