RE: getHandle failed error code 495 (thanks)

new topic     » topic index » view thread      » older message » newer message

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.
> 
>
> 
> 
>
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu