Thread: Sb_seticon

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    215

    Sb_seticon

    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);

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Quote Originally Posted by SB_SETICON documentation
    hIcon
    Handle to the icon to be set. If this value is NULL, the icon is removed from the part.
    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.

Popular pages Recent additions subscribe to a feed