|
-
Aug 11th, 2000, 06:52 PM
#1
Well.. I've been able to put images on most of the controls, but controls like the tabstrip don't have a DC .. so I'm not sure how to go about skinning it.
Any Suggestions?
-
Aug 11th, 2000, 06:59 PM
#2
Monday Morning Lunatic
Are you using the container or non-container tab control?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 11th, 2000, 07:10 PM
#3
I'm using the non-container tab control.. Tabstrip
-
Aug 11th, 2000, 07:14 PM
#4
Monday Morning Lunatic
Put an Image control over it, to correspond with the coordinates, or use the FindWindow API function to get the hWnd, then use that to get a device context, and paint onto it.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 11th, 2000, 07:22 PM
#5
thats an OK idea if you just want to skin the client area of the tabstrip control, but if you stretch an image over the entire thing it covers the tabs, and I want to skin the tabs themselves as well as the client area.
-
Aug 11th, 2000, 07:25 PM
#6
Monday Morning Lunatic
If you know the dimensions of each tab, and which one is selected, you can skin the tabs individually. I'm sure I saw a tab control somewhere that had this facility - I'll check.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 11th, 2000, 07:34 PM
#7
Even if i could get the coordinates and size of the individual tabs (sounds hard, havent actually tried it) it would cover up the tabs caption. The image needs to be directly drawn to the tab control... I just don't know how to do it
-
Aug 11th, 2000, 07:51 PM
#8
Monday Morning Lunatic
Actually, since you're using the TabStrip control, it would probably be easier to write your own control! Interesting project, and I'm sure loads of people here would help if there was scope for developer-selected features.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 12th, 2000, 12:55 AM
#9
Junior Member
maybe...
use GetDC then getwindowrect,
then stretchblt.. and paint that damn control!
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
|