Results 1 to 9 of 9

Thread: Is it possible to skin the Tabstrip control ?

  1. #1
    Guest
    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?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    I'm using the non-container tab control.. Tabstrip

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5
    Guest
    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.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  7. #7
    Guest
    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

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  9. #9
    Junior Member
    Join Date
    Jul 2000
    Posts
    19

    Red face 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
  •  



Click Here to Expand Forum to Full Width