Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can anyone tell me the memory size of the type SOCKET(long/int/...) Pin
Tim Smith7-Feb-03 4:39
Tim Smith7-Feb-03 4:39 
AnswerRe: Can anyone tell me the memory size of the type SOCKET(long/int/...) Pin
Harold Bamford7-Feb-03 5:43
Harold Bamford7-Feb-03 5:43 
GeneralQuery:MFC Dll Pin
shanksprasad7-Feb-03 1:36
shanksprasad7-Feb-03 1:36 
GeneralRe: Query:MFC Dll Pin
AlexO7-Feb-03 3:27
AlexO7-Feb-03 3:27 
GeneralView Back Ground Color Pin
Ahmad997-Feb-03 1:11
Ahmad997-Feb-03 1:11 
GeneralRe: View Back Ground Color Pin
HENDRIK R7-Feb-03 1:19
HENDRIK R7-Feb-03 1:19 
GeneralRe: View Back Ground Color Pin
Ahmad997-Feb-03 3:36
Ahmad997-Feb-03 3:36 
GeneralRe: View Back Ground Color Pin
HENDRIK R7-Feb-03 3:41
HENDRIK R7-Feb-03 3:41 
Here's an example taken from MSDN:

BOOL CSampleView::OnEraseBkgnd(CDC* pDC)
{
// Set brush to desired background color.
CBrush backBrush(RGB(255, 128, 128));
// Save old brush.
CBrush* pOldBrush = pDC->SelectObject(&backBrush);
CRect rect;
pDC->GetClipBox(&rect); // Erase the area needed.
pDC->PatBlt(rect.left, rect.top, rect.Width(),
rect.Height(), PATCOPY);
pDC->SelectObject(pOldBrush);
return TRUE;
}

If that doesn't work - which kind of view do you use?


GeneralDebugging related Pin
Sharukh Jamil7-Feb-03 0:23
sussSharukh Jamil7-Feb-03 0:23 
GeneralRe: Debugging related Pin
HENDRIK R7-Feb-03 0:30
HENDRIK R7-Feb-03 0:30 
GeneralRe: Debugging related Pin
Joerg Wiedenmann7-Feb-03 0:32
Joerg Wiedenmann7-Feb-03 0:32 
GeneralRe: Debugging related Pin
lucy7-Feb-03 5:43
lucy7-Feb-03 5:43 
Generalregistry search Pin
naradaji6-Feb-03 22:59
naradaji6-Feb-03 22:59 
GeneralQuery:FileSystemObject Pin
shanksprasad6-Feb-03 22:36
shanksprasad6-Feb-03 22:36 
QuestionMy edit is not redrawing!? Pin
Rickard Andersson206-Feb-03 21:37
Rickard Andersson206-Feb-03 21:37 
AnswerRe: My edit is not redrawing!? Pin
HENDRIK R6-Feb-03 23:00
HENDRIK R6-Feb-03 23:00 
GeneralRe: My edit is not redrawing!? Pin
Rickard Andersson206-Feb-03 23:47
Rickard Andersson206-Feb-03 23:47 
GeneralRe: My edit is not redrawing!? Pin
Rickard Andersson207-Feb-03 0:28
Rickard Andersson207-Feb-03 0:28 
Generaloutlook express config Pin
naradaji6-Feb-03 21:11
naradaji6-Feb-03 21:11 
GeneralRe: outlook express config Pin
OBRon7-Feb-03 3:53
OBRon7-Feb-03 3:53 
GeneralRe: outlook express config Pin
naradaji7-Feb-03 4:42
naradaji7-Feb-03 4:42 
QuestionHow to serialize (MFC) Image? Pin
Roman Shchugarev6-Feb-03 19:43
Roman Shchugarev6-Feb-03 19:43 
AnswerRe: How to serialize (MFC) Image? Pin
Chris Losinger6-Feb-03 19:56
professionalChris Losinger6-Feb-03 19:56 
GeneralRe: How to serialize (MFC) Image? Pin
Roman Shchugarev6-Feb-03 20:34
Roman Shchugarev6-Feb-03 20:34 
GeneralRectangle Pin
satyavasu6-Feb-03 19:13
satyavasu6-Feb-03 19:13 

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.