Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog app update windows Pin
#realJSOP25-Oct-01 7:29
mve#realJSOP25-Oct-01 7:29 
GeneralRe: dialog app update windows Pin
Carlos Antollini25-Oct-01 8:42
Carlos Antollini25-Oct-01 8:42 
GeneralRe: dialog app update windows Pin
25-Oct-01 9:33
suss25-Oct-01 9:33 
GeneralCreating hands/fingers using OpenGL (w/ C++) Pin
PhiPhi25-Oct-01 6:53
PhiPhi25-Oct-01 6:53 
Generala question about the win2000 lib file.need help Pin
Ding Bing25-Oct-01 6:22
Ding Bing25-Oct-01 6:22 
GeneralRe: a question about the win2000 lib file.need help Pin
Christian Graus25-Oct-01 8:15
protectorChristian Graus25-Oct-01 8:15 
GeneralATL, ActiveX with normal control ( Buttons...) Pin
Braulio Dez25-Oct-01 6:19
Braulio Dez25-Oct-01 6:19 
QuestionWTL: How do I change the background color of a view? Pin
clintsinger25-Oct-01 6:17
clintsinger25-Oct-01 6:17 
I was wondering how I go about changing the background color of a View in a WTL application. I have a handler to WM_ERASEBKGND and my code breaks into the OnEraseBkgnd function but it seems that the code is just ignored.

LRESULT OnEraseBkgnd(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
CBrush br;
CClientDC dc(m_hWnd);

br.CreateSolidBrush(RGB(30,30,30));

CRect rect;
GetClientRect(rect); // Using this because
//dc.GetClipBox(rect); // this usually comes back empty.

dc.PatBlt(rect.left, rect.top, rect.Width(),
rect.Height(), PATCOPY);


bHandled = true;
return 0;
}

Cheers,
Clint
AnswerRe: WTL: How do I change the background color of a view? Pin
Cris25-Oct-01 9:24
Cris25-Oct-01 9:24 
GeneralRe: WTL: How do I change the background color of a view? Pin
clintsinger25-Oct-01 9:48
clintsinger25-Oct-01 9:48 
GeneralMacros question Pin
25-Oct-01 6:04
suss25-Oct-01 6:04 
GeneralRe: Macros question Pin
#realJSOP25-Oct-01 6:34
mve#realJSOP25-Oct-01 6:34 
GeneralRe: Macros question Pin
Tomasz Sowinski25-Oct-01 8:48
Tomasz Sowinski25-Oct-01 8:48 
GeneralRe: Macros question Pin
25-Oct-01 9:04
suss25-Oct-01 9:04 
GeneralRe: Macros question Pin
Tomasz Sowinski25-Oct-01 9:19
Tomasz Sowinski25-Oct-01 9:19 
GeneralRe: Macros question Pin
Todd Smith25-Oct-01 9:19
Todd Smith25-Oct-01 9:19 
GeneralRe: Macros question Pin
Todd Smith25-Oct-01 9:10
Todd Smith25-Oct-01 9:10 
GeneralRe: Macros question Pin
Tomasz Sowinski25-Oct-01 9:15
Tomasz Sowinski25-Oct-01 9:15 
QuestionAnyone compiled MSVCRTd.DLL (MSVC++ 6.0)? Pin
Robin Hilliard25-Oct-01 5:25
Robin Hilliard25-Oct-01 5:25 
AnswerRe: Anyone compiled MSVCRTd.DLL (MSVC++ 6.0)? Pin
Tomasz Sowinski25-Oct-01 8:43
Tomasz Sowinski25-Oct-01 8:43 
AnswerRe: Anyone compiled MSVCRTd.DLL (MSVC++ 6.0)? Pin
Alvaro Mendez25-Oct-01 11:52
Alvaro Mendez25-Oct-01 11:52 
GeneralGood CE source code snippets Pin
25-Oct-01 4:33
suss25-Oct-01 4:33 
GeneralSaving MDI Child Windows Pin
25-Oct-01 4:32
suss25-Oct-01 4:32 
GeneralRe: Saving MDI Child Windows Pin
Christian Graus25-Oct-01 8:21
protectorChristian Graus25-Oct-01 8:21 
QuestionHow to take over whole screen on CE / Pocket PC device. Pin
25-Oct-01 4:31
suss25-Oct-01 4: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.