-
dialog taskbar icon
i cant set the small icon for my dialog. here is what i have tried.
Code:
HICON hIcon = LoadIcon(Instance, MAKEINTRESOURCE(IDI_ICON));
if(hIcon == NULL)
{
sprintf(str, "%i", GetLastError());
MessageBox(hwnd_main, str, "NOTE", MB_OK);
}
SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
but it just makes a blank space in the taskbar next to the dialog name. Any ideas?
-
Ok....are you sure the icon is created correctly?....
The code looks ok.....
Here's an example I just did to test this with a dailog.......its written for VC++.....have a look and see if there is anything really different....
-
Doh
Would help if I posted the code & stuff..!!..
-
cheers fordy
i thought that the taskbar icon was a 16x16 :) and i hadnt made one yet :)