PDA

View Full Version : Transparent background in eVC++ 4.0 without MFC


Pocket Me
27th February 2006, 03:58 PM
Hi all,

My app has one static control (text label) and one edit box in a child dialog (all of them are define by resource editor). This dialog has a bitmap background and I'm trying to make transparent background for static and edit controls.

I've tried to "google" but unsuccessful, all is about MFC. I have a small source file containing WndProc function for the dialog. How can I do that by adding some code in there?

Someone pls help me? Does the simplest and fastest solution exist? Give me some instruction by code or links pls? Thank you very much!

mamaich
28th February 2006, 12:22 AM
as far as I remember you cannot make transparent static/edit boxes easily. You should make them ownerdraw controls and paint the background yourself.

Pocket Me
28th February 2006, 04:04 AM
I knew the way of manual painting ownerdraw button and listbox but I thought ownerdraw other controls is impossible (there is no this exStyle for that).
OK, thanks for your help. I'll try.