Transparent Bitmap OCX
nicholsr@ix.netcom.com
Friday, April 05, 1996
VC++ 4.1 Win95 WinNT 4.0
Hi,
Has anyone tried (or succeded) at creating an OCX that displays a bitmap
with a transparent background?? I've been working on this for a few days =
and
I can't seem to get it to work correctly with a Visual Basic form.
It works fine with the test container but when I insert the control into =
a VB form
and run it (the VB progam) I don't get the form, I get whatever window =
(or the desktop) is behind the form in the transparent area with the =
non-transparent area of the bitmap on it.
The transparency routine works fine! Its the CDC that is being sent to =
the OnDraw routine that seems to be the problem.=20
Thanks for any help!
Richard A. Nichols
Alan Eyzaguirre -- ake@swellsoft.com
Sunday, April 07, 1996
Did you override EraseBkgnd in your window class?
@
At 07:37 PM 4/5/96 -0800, you wrote:
>VC++ 4.1 Win95 WinNT 4.0
>
>Hi,
>
>Has anyone tried (or succeded) at creating an OCX that displays a bitmap
>with a transparent background?? I've been working on this for a few days and
>I can't seem to get it to work correctly with a Visual Basic form.
>
>It works fine with the test container but when I insert the control into a
VB form
>and run it (the VB progam) I don't get the form, I get whatever window (or
the desktop) is behind the form in the transparent area with the
non-transparent area of the bitmap on it.
>
>The transparency routine works fine! Its the CDC that is being sent to the
OnDraw routine that seems to be the problem.
>
>Thanks for any help!
>Richard A. Nichols
>
>
>
>
| Вернуться в корень Архива
|