Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDetect DirectX version? Pin
dandy7212-Mar-03 8:00
dandy7212-Mar-03 8:00 
AnswerRe: Detect DirectX version? Pin
Dominik Reichl12-Mar-03 8:40
Dominik Reichl12-Mar-03 8:40 
GeneralRe: Detect DirectX version? Pin
dandy7213-Mar-03 3:36
dandy7213-Mar-03 3:36 
GeneralProblem working with DLL: Main APP.EXE without some features Pin
Cris12-Mar-03 7:57
Cris12-Mar-03 7:57 
GeneralRe: Problem working with DLL: Main APP.EXE without some features Pin
Yuri Kreinin12-Mar-03 10:14
Yuri Kreinin12-Mar-03 10:14 
GeneralPainting Controls Question. Pin
Maximilien12-Mar-03 7:52
Maximilien12-Mar-03 7:52 
GeneralRe: Painting Controls Question. Pin
Yuri Kreinin12-Mar-03 10:21
Yuri Kreinin12-Mar-03 10:21 
GeneralRe: Painting Controls Question. Pin
Roger Allen13-Mar-03 1:46
Roger Allen13-Mar-03 1:46 
One step to avoid a lot of flivcker in the OnEraseBkgrnd() is as follows:

// put your control ids in here
int dont_erase_indexes[] =
	{
    IDC_DPAS_LAMP,
	IDC_INSTRUMENT_TYPE,
	IDC_LABEL1,
	IDC_LABEL2,
	IDC_DESTINATION,
	IDC_CURRENT_STATUS,
	IDC_LOG,
	IDC_GRAPH,
	IDC_DOWNLOAD_STATUS,
	IDC_DOWNLOAD_PROGRESS,
	ID_AUTO_LOAD,
	IDC_UPLOAD_ASSAYS,
	IDC_AUTO_UPLOAD,
	IDC_BROWSE_FOR_FOLDER
	};

BOOL CYourControl::OnEraseBkgnd(CDC* pDC) 
{
	CRect	clip;
	pDC->SaveDC();
	for (int i = 0; i < sizeof(dont_erase_indexes) / sizeof(int); i++)
		{
		GetDlgItem(dont_erase_indexes[i])->GetWindowRect(&clip);		// get rect of the control
		ScreenToClient(&clip);
		pDC->ExcludeClipRect(&clip);
		}
	pDC->GetClipBox(&clip);
    pDC->FillSolidRect(clip, GetSysColor(COLOR_BTNFACE));
	pDC->RestoreDC(-1);
	return FALSE;
}



Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
Generalexecuting dos command Pin
Shay Harel12-Mar-03 7:36
Shay Harel12-Mar-03 7:36 
GeneralRe: executing dos command Pin
valikac12-Mar-03 7:58
valikac12-Mar-03 7:58 
GeneralRe: executing dos command Pin
Chris Losinger12-Mar-03 8:19
professionalChris Losinger12-Mar-03 8:19 
GeneralRe: executing dos command Pin
converdb12-Mar-03 8:38
converdb12-Mar-03 8:38 
GeneralRe: executing dos command Pin
TomKat14-Mar-03 15:25
TomKat14-Mar-03 15:25 
GeneralOpenGL question Pin
WhiteLegend12-Mar-03 7:33
WhiteLegend12-Mar-03 7:33 
GeneralRe: OpenGL question Pin
Moak12-Mar-03 12:38
Moak12-Mar-03 12:38 
GeneralRe: OpenGL question Pin
WhiteLegend12-Mar-03 17:09
WhiteLegend12-Mar-03 17:09 
GeneralRe: OpenGL question Pin
Moak12-Mar-03 17:47
Moak12-Mar-03 17:47 
GeneralRe: OpenGL question Pin
WhiteLegend13-Mar-03 4:40
WhiteLegend13-Mar-03 4:40 
GeneralRe: OpenGL question Pin
Moak13-Mar-03 4:53
Moak13-Mar-03 4:53 
GeneralAdding ToolTip Pin
dudic12-Mar-03 7:29
dudic12-Mar-03 7:29 
GeneralRe: Adding ToolTip Pin
TomKat14-Mar-03 15:28
TomKat14-Mar-03 15:28 
GeneralDShow - sampvid.CVideoRenderer Pin
Jakub Misek12-Mar-03 7:25
Jakub Misek12-Mar-03 7:25 
QuestionHow to Input without Breaking the Line, in a console? Pin
Aidman12-Mar-03 5:22
Aidman12-Mar-03 5:22 
AnswerRe: How to Input without Breaking the Line, in a console? Pin
valikac12-Mar-03 7:59
valikac12-Mar-03 7:59 
GeneralRe: How to Input without Breaking the Line, in a console? Pin
Aidman12-Mar-03 8:03
Aidman12-Mar-03 8:03 

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.