Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help ?? Pointer to View from Doc? Pin
jhwurmbach10-Mar-03 20:43
jhwurmbach10-Mar-03 20:43 
Question'_OLD_IOSTREAMS_ARE_DEPRECATED' - How do I clear this warning?? Pin
IrishSonic10-Mar-03 11:45
IrishSonic10-Mar-03 11:45 
AnswerRe: '_OLD_IOSTREAMS_ARE_DEPRECATED' - How do I clear this warning?? Pin
Ernesto Perales Soto10-Mar-03 12:03
Ernesto Perales Soto10-Mar-03 12:03 
GeneralCScrollView with a lot of flickering Pin
djordj10-Mar-03 11:43
djordj10-Mar-03 11:43 
GeneralRe: CScrollView with a lot of flickering Pin
MAAK10-Mar-03 11:50
MAAK10-Mar-03 11:50 
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin10-Mar-03 16:51
73Zeppelin10-Mar-03 16:51 
GeneralRe: CScrollView with a lot of flickering Pin
djordj10-Mar-03 21:19
djordj10-Mar-03 21:19 
GeneralRe: CScrollView with a lot of flickering Pin
MAAK10-Mar-03 21:40
MAAK10-Mar-03 21:40 
OnEraseBkgrnd() is not used instead from OnDraw(), it's handler for the WM_ERASEBKGRND message which allow or forbid clearing of the window DC before calling WM_PAINT, usually by drawing a large rect using the default background color.

To use it you insert a handler function for WM_ERASEBKGRND from the class view in VC++ 6 or from the 'Messages' in properties panel in VC++7.

To disable clearing the DC, you should remove the deafult return line and just return true, like this:
BOOL CChildView::OnEraseBkgnd(CDC* pDC)
{
	// TODO: Add your message handler code here and/or call default

	return true;
//	return CScrollView::OnEraseBkgnd(pDC);
}

This will disable clearing the DC before painting, and it remove flickering in many cases.

The DC pointer is passed here to allow filling the background with with differnt color or pattern, but not usually used to draw the main image.
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin12-Mar-03 2:59
73Zeppelin12-Mar-03 2:59 
GeneralRe: CScrollView with a lot of flickering Pin
djordj12-Mar-03 7:59
djordj12-Mar-03 7:59 
GeneralRe: CScrollView with a lot of flickering Pin
73Zeppelin13-Mar-03 4:07
73Zeppelin13-Mar-03 4:07 
GeneralGet User Actions While Background Thread Executes Pin
Robert Palma Jr.10-Mar-03 11:43
Robert Palma Jr.10-Mar-03 11:43 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant10-Mar-03 12:42
Dave Bryant10-Mar-03 12:42 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.11-Mar-03 8:55
Robert Palma Jr.11-Mar-03 8:55 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant11-Mar-03 9:01
Dave Bryant11-Mar-03 9:01 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.11-Mar-03 9:47
Robert Palma Jr.11-Mar-03 9:47 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant11-Mar-03 9:52
Dave Bryant11-Mar-03 9:52 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.12-Mar-03 6:15
Robert Palma Jr.12-Mar-03 6:15 
GeneralRe: Get User Actions While Background Thread Executes Pin
Dave Bryant12-Mar-03 8:12
Dave Bryant12-Mar-03 8:12 
GeneralRe: Get User Actions While Background Thread Executes Pin
TomKat14-Mar-03 16:12
TomKat14-Mar-03 16:12 
GeneralRe: Get User Actions While Background Thread Executes Pin
Robert Palma Jr.15-Mar-03 5:38
Robert Palma Jr.15-Mar-03 5:38 
Questionconfirmation please: a char is 8 bits??? Pin
Kuniva10-Mar-03 10:54
Kuniva10-Mar-03 10:54 
AnswerRe: confirmation please: a char is 8 bits??? Pin
valikac10-Mar-03 11:00
valikac10-Mar-03 11:00 
GeneralRe: confirmation please: a char is 8 bits??? Pin
Kuniva10-Mar-03 11:01
Kuniva10-Mar-03 11:01 
AnswerRe: confirmation please: a char is 8 bits??? Pin
Michael Dunn10-Mar-03 11:02
sitebuilderMichael Dunn10-Mar-03 11:02 

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.