Home All Groups Group Topic Archive Search About
Author
29 May 2005 12:08 AM
Benedikt Hübschen
Hi all,

I'm working on a unicode-replacement for the VB-Controls...  i already
finished some controls (Edit, Frame,
CheckBox, OptionButton, ComboBox, ListBox, FileListBox und DirListBox) ...
now i want to make a label-control... but after hours of testing i have no
idea, how i can make the usercontrol transparent and displaying the caption
with DrawTextW.

The trick i found in the MSDN is not what i want to do (making a
background-picture from the area the control is displayed)

Does anyone now, how i can display the DrawTextW-'painted' Text and having
the background of the control invisible?

MfG. Benedikt Hübschen
-------------------------------
SilverMoon Software GbR - http://www.silvermoon-software.de

Author
29 May 2005 2:53 AM
Rick Rothstein
> I'm working on a unicode-replacement for the VB-Controls...  i already
> finished some controls (Edit, Frame,
> CheckBox, OptionButton, ComboBox, ListBox, FileListBox und DirListBox)
....
> now i want to make a label-control... but after hours of testing i
have no
> idea, how i can make the usercontrol transparent and displaying the
caption
> with DrawTextW.
>
> The trick i found in the MSDN is not what i want to do (making a
> background-picture from the area the control is displayed)

You might not be able to make it any simpler.

> Does anyone now, how i can display the DrawTextW-'painted' Text and
having
> the background of the control invisible?

Perhaps this will help you out
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=24680&lngWId=1

Rick - MVP