Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » A flicker comes out and is troubled. Collapse All
Subject Author Date
tera t Apr 25, 2008 - 3:05 AM

Hello.


When I change size of CExtControlBar.

A drawing domain flickers.



http://www.yukai.jp/~ifreeta/20080425/SampleScroll.lzh


I am troubled.

I ask for advice.


Thanks,


 

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

Thank you for advice.

With memory DC, I got rid of screen flicker.


http://www.geocities.jp/chiakifujimon/makesoft2/proc3.html

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.