Click here to Skip to main content
15,906,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cast operator example? Pin
Ravi Bhavnani22-May-03 7:51
professionalRavi Bhavnani22-May-03 7:51 
GeneralRe: Cast operator example? Pin
David Crow22-May-03 7:58
David Crow22-May-03 7:58 
GeneralRe: Cast operator example? Pin
Ravi Bhavnani22-May-03 8:16
professionalRavi Bhavnani22-May-03 8:16 
AnswerRe: Cast operator example? Pin
peterchen22-May-03 7:57
peterchen22-May-03 7:57 
GeneralRe: Cast operator example? Pin
Ravi Bhavnani22-May-03 8:17
professionalRavi Bhavnani22-May-03 8:17 
AnswerRe: Cast operator example? Pin
Michael Dunn22-May-03 8:12
sitebuilderMichael Dunn22-May-03 8:12 
GeneralRe: Cast operator example? Pin
Ravi Bhavnani22-May-03 8:18
professionalRavi Bhavnani22-May-03 8:18 
General(Updated) Bitmap and Radio Button :o) Pin
MemLeak22-May-03 7:17
MemLeak22-May-03 7:17 
Hi,

I have a dialog with a bitmap background. When I put my radio buttons on the dialog, I cannot see the bitmap under the rectangle created by the radio button. I would like to see the bitmap under the radio buttons?

I can change the color if I want with:

HBRUSH RightDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = ShapedDlg::OnCtlColor(pDC, pWnd, nCtlColor);

if ( pWnd->GetSafeHwnd() == GetDlgItem(IDC_RADIO1)->GetSafeHwnd() &&
CTLCOLOR_STATIC == nCtlColor )
{
// m_bkbrush is a CBrush member variable
m_bkbrush.CreateSolidBrush ( RGB(255,0,0) );

pDC->SetBkMode ( TRANSPARENT );
return m_bkbrush;
}

return hbr;
}

but what can I do if I have a bitmap unstead of solid color?

any ideas?

Regards

Mykel

Everything's beautiful if you look at it long enough...
GeneralCFile::Read Pin
djordj22-May-03 7:08
djordj22-May-03 7:08 
GeneralRe: CFile::Read Pin
Chris Losinger22-May-03 7:15
professionalChris Losinger22-May-03 7:15 
GeneralRe: CFile::Read Pin
RobJones22-May-03 7:20
RobJones22-May-03 7:20 
GeneralRe: CFile::Read Pin
John R. Shaw22-May-03 7:23
John R. Shaw22-May-03 7:23 
GeneralFour dialogs Pin
emrosa22-May-03 7:07
emrosa22-May-03 7:07 
GeneralRe: Four dialogs Pin
John R. Shaw22-May-03 7:13
John R. Shaw22-May-03 7:13 
GeneralDll's with win32 project Pin
Mazdak22-May-03 6:48
Mazdak22-May-03 6:48 
GeneralRe: Dll's with win32 project Pin
David Crow22-May-03 6:51
David Crow22-May-03 6:51 
GeneralRe: Dll's with win32 project Pin
Mazdak22-May-03 6:59
Mazdak22-May-03 6:59 
GeneralRe: Dll's with win32 project Pin
David Crow22-May-03 7:16
David Crow22-May-03 7:16 
GeneralRe: Dll's with win32 project Pin
Mazdak22-May-03 7:20
Mazdak22-May-03 7:20 
GeneralRe: Dll's with win32 project Pin
David Crow22-May-03 7:26
David Crow22-May-03 7:26 
GeneralRe: Dll's with win32 project Pin
Mazdak22-May-03 8:06
Mazdak22-May-03 8:06 
GeneralRe: Dll's with win32 project Pin
David Crow22-May-03 8:24
David Crow22-May-03 8:24 
GeneralRe: Dll's with win32 project Pin
John R. Shaw22-May-03 7:06
John R. Shaw22-May-03 7:06 
GeneralRe: Dll's with win32 project Pin
Mazdak22-May-03 7:19
Mazdak22-May-03 7:19 
GeneralRe: Dll's with win32 project Pin
John R. Shaw22-May-03 7:31
John R. Shaw22-May-03 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.