i have a little problem, i use a window and i draw the background with a pattern. I've built the window with CreateDialog api, using a rsrc script for the dialog, in the window i have some STATIC TEXT controls, the background of this static controls covers the background i draw for the window, how do i make it transparent? That is, i need that in the rect of STATIC TEXT control the only thing visible is the text itself and the background be transparent so i can still see the background drawing. How do i do? Hope i explained myself.
Thanks all
Bye
AndreaGeddon
Thanks all
Bye
AndreaGeddon
Hi AndreaGeddon,
i think (but i'm not sure) that you have to catch WM_CTLCOLORSTATIC message and then use SetBkMode function with transparent background mode.
hope this help you...
ciao,
ZaiRoN
i think (but i'm not sure) that you have to catch WM_CTLCOLORSTATIC message and then use SetBkMode function with transparent background mode.
hope this help you...
ciao,
ZaiRoN
ZaiRoN is right, here is an old post abot this subject.
Background color in text
Background color in text
Thanx a lot! It works :cool:
I think i can apply this method also to other control msg, such as WM_CTLCOLOREDIT right? Thanx a lot, just what i was looking for!
Byez
AndreaGeddon
I think i can apply this method also to other control msg, such as WM_CTLCOLOREDIT right? Thanx a lot, just what i was looking for!
Byez
AndreaGeddon
If you are looking for a WM_CTLCOLOREDIT example at the bottom of this page you will find a very nice one from KetilO.
PS: Before launch it wear your sun glasses :cool:
PS: Before launch it wear your sun glasses :cool: