Posted by: Tina Stewart
Hi
I'm having issues loading an icon into a static control.
I have tried to load an icon from a resource.
! STM_SETICON = 0x0170
Set hIconCentura = VisPicLoad( PIC_FormatIcon | PIC_LoadSWinRes |
PIC_LoadLargeIcon, 'icoTest','')
Set hIcon = VisPicGetHandle( hIconCentura )
Call SalSendMsg( ccStatic, STM_SETICON, IMAGE_ICON, hIcon )
That did not work.
I have tried to load an icon from a file:
Set hIcon = LoadImageA( 0, 'icoTest.ico', IMAGE_ICON, 32, 32,
LR_LOADFROMFILE|LR_DEFAULTSIZE )
Call SalSendMsg(ccStatic, STM_SETICON, IMAGE_ICON, hIcon )
Any ideas would be greatly appreciated.
T