Discussion:
Transparent Static Problem
(too old to reply)
Shahoo
2007-03-14 22:35:16 UTC
Permalink
Hi,I used this control
http://www.codeproject.com/staticctrl/transparentstatic.asp
on a dialog as follows:
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Tom Serface
2007-03-14 23:55:20 UTC
Permalink
You could probably just call Invalidate() or RedrawWindow() to have it
redraw or you could try this one that our home-boy Ali wrote. It works
pretty well:

http://www.codeproject.com/staticctrl/TransparentStaticCtrl.asp

Tom
Post by Shahoo
Hi,I used this control
http://www.codeproject.com/staticctrl/transparentstatic.asp
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Shahoo
2007-03-15 14:09:35 UTC
Permalink
Post by Tom Serface
You could probably just call Invalidate() or RedrawWindow() to have it
redraw or you could try this one that our home-boy Ali wrote. It works
http://www.codeproject.com/staticctrl/TransparentStaticCtrl.asp
Tom
Post by Shahoo
Hi,I used this control
http://www.codeproject.com/staticctrl/transparentstatic.asp
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Thanks Tom the link worked perfectly
AliR.
2007-03-16 04:33:00 UTC
Permalink
Hi,I used this controlhttp://www.codeproject.com/staticctrl/transparentstatic.asp
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Use this one instead

http://www.codeproject.com/staticctrl/TransparentStaticCtrl.asp

AliR.
Tom Serface
2007-03-16 05:00:30 UTC
Permalink
Good idea!

:o)

Tom
Post by AliR.
Post by Shahoo
Hi,I used this
controlhttp://www.codeproject.com/staticctrl/transparentstatic.asp
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Use this one instead
http://www.codeproject.com/staticctrl/TransparentStaticCtrl.asp
AliR.
AliR (VC++ MVP)
2007-03-19 14:43:57 UTC
Permalink
I just saw your post.

:)

AliR.
Post by Tom Serface
Good idea!
:o)
Tom
Post by AliR.
Post by Shahoo
Hi,I used this
controlhttp://www.codeproject.com/staticctrl/transparentstatic.asp
There is a static control and added a variable of CString to it.
It works well and shows the text on transparet background, but when I
change the value of the
CString variable and call UpdateData it shows the text on opaque
background.
Can anyone please help?
Use this one instead
http://www.codeproject.com/staticctrl/TransparentStaticCtrl.asp
AliR.
Loading...