Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Need some Win32 help

 
Post new topic   Reply to topic Printable version
 View previous topic  Open Source RPG. Post :: Post SQL and PHP  View next topic  
Author Message
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Feb 09, 2006 6:01 pm    Post subject: Need some Win32 help Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Thu Feb 09, 2006 9:18 pm    Post subject: Reply to topic Reply with quote

http://support.microsoft.com/?scid=kb;en-us;174667

?
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Feb 09, 2006 10:13 pm    Post subject: Reply to topic Reply with quote

Sorry, no. I"m all googled out on this issue.
Back to top
View users profile Send private message Add User to Ignore List
SpecShip
Complete twat


Gender:Gender:Male
Joined: Dec 17 2005
Posts: 514
Location: 8025 - Spec Freq
Offline

PostPosted: Fri Feb 10, 2006 2:39 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:36
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Feb 10, 2006 10:45 am    Post subject: Reply to topic Reply with quote

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. icon_sad.gif

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
View users profile Send private message Add User to Ignore List Visit posters website
Cerium
Server Help Squatter


Age:41
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Fri Feb 10, 2006 11:33 am    Post subject: Reply to topic Reply with quote

What exactly is the problem?
_________________
There are 7 user(s) ignoring me right now.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Fri Feb 10, 2006 11:41 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cerium
Server Help Squatter


Age:41
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Fri Feb 10, 2006 6:18 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Fri Feb 10, 2006 6:32 pm    Post subject: Reply to topic Reply with quote

Mr Ekted wrote:
In WM_CTRCOLOREDIT, I set TRANSPARENT...
Back to top
View users profile Send private message Add User to Ignore List
Cerium
Server Help Squatter


Age:41
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Sat Feb 11, 2006 1:17 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 646 page(s) served in previous 5 minutes.

phpBB Created this page in 0.449547 seconds : 35 queries executed (93.4%): GZIP compression disabled