Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtBarButton transparent color for bitmap Collapse All
Subject Author Date
Ulrich Heinicke May 25, 2010 - 2:11 PM

Hi,


i have a toolbar with text like your example ’FunnyBars’. I insert each button dynamically from single bitmaps. How can i define that RGB(255,0,255) i used for transparent?


Thanks


Ulrich

Technical Support May 26, 2010 - 11:47 AM

Here is the declaration of the CExtToolControlBar::LoadToolBar() method:

BOOL CExtToolControlBar::LoadToolBar(
            __EXT_MFC_SAFE_LPCTSTR  lpszResourceName,
            COLORREF clrTransparent // = RGB(192,192,192)
            )

The RGB(192,192,192) color is used as transparent both in Prof-UIS and MFC. But you can use your preferred color. The COLORREF(-1L) value means do not make any pixels of any color transparent.