Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera t
|
Apr 25, 2008 - 3:05 AM
|
|
|
Technical Support
|
Apr 26, 2008 - 1:50 AM
|
The link you provided leads to a page with "File not found" .
We guess you are using the OnPaint() message handler in your dialog class. If so, the CClientDC class should be used instead of CPaintDC , because the themed background is painted before the OnPaint() handler is called:
void CMainDlg::OnPaint()
{
CClientDC dc(this);
dc.LineTo( 100, 100 );
}
|
|
tera t
|
Apr 27, 2008 - 10:15 PM
|
|
|
Technical Support
|
Apr 28, 2008 - 10:11 AM
|
Using the memory DC in the WM_PAINT message handle allows you to implement flicker free window painting. But you should also prevent painting by the WM_ERASEBKGND message. You should implement an empty message handler for the WM_ERASEBKGND message or a register window class with a NULL brush.
|
|