Why is it so? If to XP Theme enable a program, COMMCTRL.INC has to be
included, else the program won't start. Weird, so I boiled it down to
the ImageList_AddIcon function and since it's just a wrapper for the
ImageList_ReplaceIcon call, it means both those two are needed. IOW,
instead of including the entire COMMCTRL.INC, one can just include
FUNCTION ImageList_AddIcon and the declare for ImageList_ReplaceIcon.
Ok, but why at all? My code is not calling any of them, and I found no
info about them being necessary at MSDN. Somehow, the XP Theme engine
must be doing some really weird stunt with ImageList_AddIcon there ..
------------------
PowerBASIC Staff
------------------
Private web-site: http://www.tolkenxp.com/pb
Free downloads: POFFS, incLean, PBcodec, custom controls and PB samples.
included, else the program won't start. Weird, so I boiled it down to
the ImageList_AddIcon function and since it's just a wrapper for the
ImageList_ReplaceIcon call, it means both those two are needed. IOW,
instead of including the entire COMMCTRL.INC, one can just include
FUNCTION ImageList_AddIcon and the declare for ImageList_ReplaceIcon.
Ok, but why at all? My code is not calling any of them, and I found no
info about them being necessary at MSDN. Somehow, the XP Theme engine
must be doing some really weird stunt with ImageList_AddIcon there ..
------------------
PowerBASIC Staff
------------------
Private web-site: http://www.tolkenxp.com/pb
Free downloads: POFFS, incLean, PBcodec, custom controls and PB samples.
Comment