15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Edit Control with Transparent Background

Brad Larsen -- blarsen@icis.on.ca
Thursday, December 05, 1996

Environment: VC++ 4.0, Win 95

I was wondering if anyone out there knew if it was possible to create an
edit control that has a transparent background.

Thanks for any help

Brad Larsen






Mike Blaszczak -- mikeblas@nwlink.com
Sunday, December 08, 1996

At 13:49 12/5/96 -0500, Brad Larsen wrote:
>Environment: VC++ 4.0, Win 95

>I was wondering if anyone out there knew if it was possible to create an
>edit control that has a transparent background.

Write a handler for WM_CTLCOLOR.  When this message is sent and the
parameters it carries indicate that the message is being sent to colour
your edit control, return a stock NULL_BRUSH from the function.  Make
sure you also set the background style to TRANSPARENT instead of OPAQUE
by calling SetBkMode().



.B ekiM
http://www.nwlink.com/~mikeblas/
I'm afraid I've become some sort of speed freak.
These words are my own. I do not speak on behalf of Microsoft.





| Вернуться в корень Архива |