Re: More Win32lib wrapping questions

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

On Thu, 13 Apr 2000 09:20:37 -0400, SR Williamson <sr.williamson at OSHA.GOV>
wrote:

>I figured out how to set the data members in the structure using the store
>() statement. Now, how do I use getHandle()? You must pass it an atom. What
>atom do I pass it?

You pass it the win32lib handle of the icon object.  For example, if you
have an icon that you created thus:

atom myIcon
myIcon = create(Icon,"",myWindow, 0, 0, 0, 0, 0)

then you would need:

atom hIcon
hIcon = getHandle(myIcon)


>Also, the szTip[] member of the NOTIFYICONDATA structure is of type TCHAR.
>Does anyone know offhand what that would be in Win32lib? The size of the
>char array is set at 64 in the structure. Do I need to have a sequence of
>exactly 64 atoms to store in that member, or can it be fewer?

A TCHAR is a character array, which translates to Euphoria as a null-
terminated string.  Since szTip occurs as the last member of the
NOTIFYICONDATA structure, as long as you've null-terminated it, it can be
shorter than the 64 bytes.

Brian

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

Search



Quick Links

User menu

Not signed in.

Misc Menu