RE: getHandle failed error code 495 (thanks)
- Posted by jacktarred at yahoo.com
Apr 23, 2002
Thanks Derek and Matt. Yes, I was calling the icon
before the list was created.
--- Derek Parnell <ddparnell at bigpond.com> wrote:
>
>
> jacktarred at yahoo.com wrote:
> > I have the following line in two programs:
> >
> > constant stox = addIcon(
> extractIcon("mystox.ico"))
> >
> > In one program I have no problems, in the other I
> get
> > the message:
> >
> > error code 495
> > getHandle failed!
> >
> > I tried throwing in the path for good measure but
> to
> > no avail. Anyone have a suggestion?
> >
> > Thanks,
> > Jack
> >
> Jack,
> the addIcon routine adds icons to the image lists
> maintained within
> Win32lib. However, these lists are not created until
> the first create of
> a ListView, TreeView or ComboBoxEx control. So maybe
> the program is
> failing because the addIcon() is being called before
> the create() of one
> of these controls.
>
> I will fix this the next version such that the image
> lists are created
> by addIcon() if not already done so.
>
> --------
> Derek.
>
>
>
>
>
>
|
Not Categorized, Please Help
|
|