Sb_seticon

This is a discussion on Sb_seticon within the Windows Programming forums, part of the Platform Specific Boards category; Im trying to use SB_SETICON, however the icon will not appear on my status bar, here's the code i used: ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21