Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Image background on tab control is no transparent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Image background on tab control is no transparent

 Post Reply Post Reply
Author
Message
fleg View Drop Down
Groupie
Groupie


Joined: 11 July 2012
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote fleg Quote  Post ReplyReply Direct Link To This Post Topic: Image background on tab control is no transparent
    Posted: 19 April 2018 at 7:39am

Hi,

When using icons on tab control CTabCtrl, the icon is no longer transparent (tried using several styles).

with Toolkitpro 17.3


Now with Toolkitpro 18.3


Workaround is to replace the class CTabCtrl by CXTPTabCtrl,


but it should continue working without code changes.

Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 605
Post Options Post Options   Thanks (1) Thanks(1)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2018 at 4:10pm
Perhaps this is a "first pixel" is the transparent color issue? We fight this all the time. I think CJ lets you set the transparent pixel color, though it might be a "global" setting. Find the CJ code that gets the first pixel and see if it changes for some reason.

We have been moving all our images to PNG to get away from a lot of these types of issues. Even before we moved to CJ we would have issues, especially in the days when bitmaps had color tables because they are not 32 bits. In some cases, we use WIC to convert images to PNG. But even then, you have to get the parameters to the calls correct.

But hey, at least the background isn't black (our most common historical issue).
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.