Im trying to use SB_SETICON, however the icon will not appear on my status bar, here's the code i used:
Code:SendMessage(GetDlgItem(hwnd,ID_STATUS_CHANNEL),SB_SETICON,1,(HICON)IDI_STP_ICON);
Im trying to use SB_SETICON, however the icon will not appear on my status bar, here's the code i used:
Code:SendMessage(GetDlgItem(hwnd,ID_STATUS_CHANNEL),SB_SETICON,1,(HICON)IDI_STP_ICON);
You are providing a resource identifier where an icon handle is expected. An icon handle and a resource id are two different things. You will have to load the icon with LoadImage() to get an icon handle.Originally Posted by SB_SETICON documentation