skin and bitmap in a dialog |
Post Reply |
Author | |
Dominique
Newbie Joined: 06 July 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 21 February 2007 at 5:33am |
I would like to skin my MFC application with the skin framework. But i have a problem when i put a bitmap onto the background of a dialog box. In fact, some controls (like radio buttons) are not painted transparently.
Without applying skin, it works.
In my code, OnCtlColor looks like this :
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{ HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if (nCtlColor == CTLCOLOR_STATIC || nCtlColor == CTLCOLOR_BTN) { pDC->SetBkMode( TRANSPARENT ); return (HBRUSH)m_brStaticControl;//HOLLOW_BRUSH } return hbr }
Thanks in advance
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |