Re: Mike Stretch Icons + DSS_DISABLED

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Andy DF (PrivateType_at_vb.com)
Date: 09/07/04


Date: Tue, 7 Sep 2004 10:47:27 +0200

Mike,

Thanks for the reply.
I'm trying but so far no success.

By reading your post over and over I'm starting to think that I didn't make
myself too clear:
my starting point is an icon with transparency wrapped into an stdPicture
(loaded from resource thru LoadResPicture), not a bitmap.

You state:
> The IconHelper library allows you to create an icon from a Bitmap...
That gets me confused on which function I should use.

Thanks,

-- 
Andy,
pctos550@hotmail.com
"Mike D Sutton @ Work" <edais@mvps.org> ha scritto nel messaggio 
news:OV0TfcAlEHA.3356@TK2MSFTNGP15.phx.gbl...
>> I was reviewing your Stretch Icon Code you kindly provided a few weeks 
>> back
>> (see Stretch Icon Post on microsoft.public.vb.winap) and I was wondering 
>> if
>> it can be extended to transform an icon into its disabled version.
>>
>> I'm trying to find a way to transform icons w/out having to deal with a
>> background color, which would be an issue if I used DrawState on new DC.
>
> The IconHelper library allows you to create an icon from a Bitmap, 
> excluding a background colour so it should work just fine (I
> don't off the top of my head remember exactly what DrawState() gives you 
> for the Bitmap mode, all I remember was never particularly
> impressed with it though..)
> If it's no good then it's not too tricky to create a disabled version of 
> the icon by drawing the mask multiple times in the system
> button highlight, shadow and face colours using the same method we 
> discussed back in April:
> http://groups.google.co.uk/groups?selm=ut30ox8IEHA.1944%40TK2MSFTNGP11.phx.gbl
> Hope this helps,
>
>    Mike
>
>
> - Microsoft Visual Basic MVP -
> E-Mail: EDais@mvps.org
> WWW: http://www.mvps.org/EDais/
>
> 

Quantcast