- /* Tag the info to the window */
- SetWindowLongPtrW(hDlg,
- GWLP_USERDATA,
- (LONG_PTR)pInfo);
-
- /* Load the icon for the window */
- hIcon = (HICON)LoadImageW(hInstance,
- MAKEINTRESOURCE(IDI_SM_ICON),
- IMAGE_ICON,
- GetSystemMetrics(SM_CXSMICON),
- GetSystemMetrics(SM_CXSMICON),
- 0);
- if (hIcon)
- {
- /* Set it */
- SendMessageW(hDlg,
- WM_SETICON,
- ICON_SMALL,
- (LPARAM)hIcon);
- DestroyIcon(hIcon);
- }