The WPS reference lists two potentially useful functions, wpSetIcon()
and wpSetIconData(). I know next to nothing about WPS programming.
Is it possible to get the "WPObject*" value of a field in a details view
container? Is there such a thing?
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jim Moe wrote:
> The story so far: It is not possible to create mini icons by loading an
> icon file (FILE.ICO), converting the bitmap data to an image, and passing
> those images to WinCreatePointer() or WinCreatePointerIndirect(). Both API
> functions either take a full icon and shrink it, or expand a mini icon
> image to full size and then shrink that.
> There is clearly *some* way to do this. For instance, the details view
> of a directory properly shows the mini icon of an icon file listing.
I had a similar problem in PM123 some time ago when I tried to use small
icons without the additional +/- icons in the container control. As far
I remember I got a hint about an undocumented flag. You might have a
look to the playlistmanager source code of PM123 1.40a4. Maybe it points
you in the right direction. At least the container view is solved there.
For the pointers: once you have a mini icon as bitmap data you might pad
it with masked pixels to get a larger pointer and keep the API happy if
nothing else helps.
Marcel
> For the pointers: once you have a mini icon as bitmap data you might pad
> it with masked pixels to get a larger pointer and keep the API happy if
> nothing else helps.
>
Hmm. Interesting hack...
I load it from a linked resource. But this should not make a major
difference. Maybe it is in the base class PlaylistBase, since the icons
are the same than in the detailed view. (I currently have no access to
the OS/2 machine.)
The container options should be set either in the Init function or in
the resource file. I think CCS_MINIICONS did the trick.
Marcel
> The container options should be set either in the Init function or in
> the resource file. I think CCS_MINIICONS did the trick.
>
Already there.