Author |
Message |
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Feb 09, 2006 6:01 pm Post subject: Need some Win32 help |
|
|
|
|
I'm looking for some help from any serious win32 developers (if there are any here). The problem deals with using a subclassed edit control, WM_CTLCOLOREDIT, and SetBkMode(dc, TRANSPARENT). If you have no idea what I am talking about, then you can't help me. _________________ 4,691 irradiated haggis! |
|
Back to top |
|
|
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Feb 09, 2006 10:13 pm Post subject: |
|
|
|
|
Sorry, no. I"m all googled out on this issue. |
|
Back to top |
|
|
SpecShip Complete twat
Gender: Joined: Dec 17 2005 Posts: 514 Location: 8025 - Spec Freq Offline
|
Posted: Fri Feb 10, 2006 2:39 am Post subject: |
|
|
|
|
Wish I could help, sincerely, but I'm as clueless as learjett on this one.
Did you try the win32assembly community forums? _________________ Replacing yazour untill the whore returns.
"I could run a ss server on my car stereo!" -Xalimar
"Liberta tuit ma ex infernis" -Event Horizon
"I know too much about nothing." - Mine GO BOOM
"Hmm anyway, back to my kingdom hearts." - Chambahs |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Feb 10, 2006 10:45 am Post subject: |
|
|
|
|
Well, that made sense to me, but I usually come to you for help, so I don't think I'm of any use here.
But you could go ahead and say what's up. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
|
Cerium Server Help Squatter
Age:41 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Fri Feb 10, 2006 11:33 am Post subject: |
|
|
|
|
What exactly is the problem? _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Fri Feb 10, 2006 11:41 am Post subject: |
|
|
|
|
I am trying to create an EDIT control that has a "transparent" background. That is, the window behind it--its parent--has a complex image. I want the text of the edit control to show over this image.
In WM_CTRCOLOREDIT, I set TRANSPARENT, and return NULL_BRUSH.
In WM_ERASEBKGND (subclassed), I blit that portion of the image seen through the control.
The edit control still draws black text on solid white. If I SetBkColor(dc, PURPLE), I see a purple background. So I know it's simply using the current text background color. But it shouldn't be because I have set TRANSPARENT mode.
All the examples I can find online do pretty much exactly this, but no one is doing exactly what I want.
I have since designed my own custom edit control that behaves exactly as I need, except for selection. |
|
Back to top |
|
|
Cerium Server Help Squatter
Age:41 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Fri Feb 10, 2006 6:18 pm Post subject: |
|
|
|
|
Its been a while since Ive had to deal with windows API, but have you tried using SetBkMode(hdc, TRANSPARENT) instead of (or with) SetBkColor? |
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Fri Feb 10, 2006 6:32 pm Post subject: |
|
|
|
|
Mr Ekted wrote: | In WM_CTRCOLOREDIT, I set TRANSPARENT... |
|
|
Back to top |
|
|
Cerium Server Help Squatter
Age:41 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Sat Feb 11, 2006 1:17 am Post subject: |
|
|
|
|
Ahh.. I didnt assume thats what you were doing.
In any event, it looks like youre doing everything right, I dont see why it wouldnt work at that point. Sorry. |
|
Back to top |
|
|
|