-
February 27th, 2013, 09:44 AM
#1
[RESOLVED] Displaying an icon in a simple dialog with winapi
I made a dialog to have a customizable msgbox. (custom icon, custom caption on buttons).
This is how I try to display an icon on the dialog but it is not working. Can anyone help?
HICON hIcon = LoadIcon(NULL, IDI_QUESTION);
HWND hImageCtl = GetDlgItem(hDlg, IDC_STATIC);
::SendMessage(hImageCtl, STM_SETIMAGE, IMAGE_ICON, (LPARAM)hIcon);
//SendDlgItemMessage(hDlg, IDC_STATIC, STM_SETICON, (WPARAM) hIcon, 0);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|