Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 
QuestionCHtmlView not displaying anything [modified] Pin
Brahmandcoder9-Mar-09 7:08
Brahmandcoder9-Mar-09 7:08 
QuestionAccessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 6:36
ForNow9-Mar-09 6:36 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
BobInNJ9-Mar-09 7:32
BobInNJ9-Mar-09 7:32 
QuestionRe: Accessing Private member of a base Class from a Derived Class Pin
David Crow9-Mar-09 8:28
David Crow9-Mar-09 8:28 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:23
ForNow9-Mar-09 12:23 
GeneralRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:33
ForNow9-Mar-09 12:33 
QuestionI use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Astitva239-Mar-09 5:10
Astitva239-Mar-09 5:10 
I use these two functions that I have copied from codeproject to use transparent static text and background in my application. But everytime I put a command button in my application the application seems to run for milliseconds and vanishes without me closing out. I am a beginner and any suggestion would be great thank you.

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


if( nCtlColor == CTLCOLOR_STATIC )
{
pDC->SetBkMode(TRANSPARENT);
//pDC->SetTextColor(RGB(255, 0, 0));
hbr = (HBRUSH)GetStockObject( NULL_BRUSH );
}

else
{
hbr = CTrialDlg::OnCtlColor(pDC, pWnd, nCtlColor);
}

return hbr;
}

BOOL CTrialDlg::OnEraseBkgnd(CDC* pDC)
{
CBitmap m_bitmap;
BOOL rVal = FALSE; //CWizardPage_Base::OnEraseBkgnd(pDC);

if( m_bitmap.LoadBitmap( IDB_Background ) )
{
CRect rect;
GetClientRect( &rect );

CDC dc;
dc.CreateCompatibleDC( pDC );
CBitmap* pOldBitmap = dc.SelectObject( &m_bitmap );

pDC->BitBlt( 0, 0, rect.Width(), rect.Height(), &dc, 0, 0, SRCCOPY);

dc.SelectObject(pOldBitmap);
rVal = TRUE;
}

return rVal;
}
AnswerRe: I use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Eytukan9-Mar-09 5:31
Eytukan9-Mar-09 5:31 
Generaloverlayered text Pin
Astitva239-Mar-09 5:57
Astitva239-Mar-09 5:57 
GeneralRe: overlayered text Pin
Eytukan9-Mar-09 6:03
Eytukan9-Mar-09 6:03 
GeneralRe: overlayered text Pin
Astitva239-Mar-09 8:05
Astitva239-Mar-09 8:05 
Questionunicode application Pin
tom groezer9-Mar-09 4:47
tom groezer9-Mar-09 4:47 
QuestionRe: unicode application Pin
David Crow9-Mar-09 4:49
David Crow9-Mar-09 4:49 
AnswerRe: unicode application Pin
Eytukan9-Mar-09 5:04
Eytukan9-Mar-09 5:04 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:03
tom groezer9-Mar-09 7:03 
GeneralRe: unicode application Pin
Eytukan9-Mar-09 7:35
Eytukan9-Mar-09 7:35 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:45
tom groezer9-Mar-09 7:45 
GeneralRe: unicode application Pin
Jeremy Falcon9-Mar-09 8:09
professionalJeremy Falcon9-Mar-09 8:09 
Questionsockets in MFC Pin
hrishiS9-Mar-09 2:16
hrishiS9-Mar-09 2:16 
AnswerRe: sockets in MFC Pin
Nishad S9-Mar-09 2:22
Nishad S9-Mar-09 2:22 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 2:38
hrishiS9-Mar-09 2:38 
GeneralRe: sockets in MFC Pin
Nishad S9-Mar-09 2:49
Nishad S9-Mar-09 2:49 
GeneralRe: sockets in MFC Pin
Code-o-mat9-Mar-09 2:47
Code-o-mat9-Mar-09 2:47 
GeneralRe: sockets in MFC Pin
Nishad S9-Mar-09 2:50
Nishad S9-Mar-09 2:50 

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.