|
-
Jan 25th, 2003, 04:12 PM
#1
Thread Starter
Frenzied Member
Label , static text
ok im using createwindow to create a static text label . is there another way? and also if there is and if there isnt a way how can i make the background transparent? I know it probably has to be api but how?
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Jan 25th, 2003, 07:26 PM
#2
You can put it in a dialog resource. No way around CreateWindow (or CreateWindowEx) in normal windows. Any special reason why there should be?
As for transparent: You can try intercepting the WM_COLORCTLSTATIC message and return a null-brush. But I can't guarantee it will work.
If you want text with transparent background in a normal window I recommend you draw it yourself.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 25th, 2003, 07:57 PM
#3
Thread Starter
Frenzied Member
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Jan 25th, 2003, 09:19 PM
#4
Hyperactive Member
You mean with the static? I think it should be SetWindowText(HWND, LPCTSTR).
Otherwise use GDI function DrawText()
-
Jan 25th, 2003, 09:22 PM
#5
Thread Starter
Frenzied Member
how do i do the DrawText()?
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Jan 26th, 2003, 05:30 AM
#6
Look it up in the reference. You need to intercept WM_PAINT for this, but you need to do that anyway.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|