Maybe something I'm doing wrong, but I can't get an icon attached
to my form.
I created my resource file with msvc6. This is the part of my .rc
file where the icon is named:
HOCKEY ICON DISCARDABLE "hock.ico"
I saved it as a res file and converted it to a pbr file.
In my program I call the icon with :
hIco = LoadIcon(GetWindowLong(hDlg, %GWL_HINSTANCE), "HOCKEY")
(hico returns 0 !)
IF hIco THEN DIALOG SEND hDlg, %WM_SETICON, %ICON_BIG, hIco
Strange thing is that the compiled file has the icon attached to it.
The icon is of a 16x16 format.
What is wrong ?
(I only see the standard windows icon attached to my form)
------------------
[This message has been edited by Erwin van de Wiel (edited July 27, 2000).]
to my form.
I created my resource file with msvc6. This is the part of my .rc
file where the icon is named:
HOCKEY ICON DISCARDABLE "hock.ico"
I saved it as a res file and converted it to a pbr file.
In my program I call the icon with :
hIco = LoadIcon(GetWindowLong(hDlg, %GWL_HINSTANCE), "HOCKEY")
(hico returns 0 !)
IF hIco THEN DIALOG SEND hDlg, %WM_SETICON, %ICON_BIG, hIco
Strange thing is that the compiled file has the icon attached to it.
The icon is of a 16x16 format.
What is wrong ?
(I only see the standard windows icon attached to my form)
------------------
[This message has been edited by Erwin van de Wiel (edited July 27, 2000).]
Comment