Click here to Skip to main content
15,898,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 12:19
LukeV11-Feb-04 12:19 
GeneralRe: Locallizing to Hebrew Pin
Anonymous11-Feb-04 14:03
Anonymous11-Feb-04 14:03 
GeneralRe: Locallizing to Hebrew Pin
LukeV11-Feb-04 13:05
LukeV11-Feb-04 13:05 
GeneralOutlook Programming - User-Defined Fields Pin
Christian Zellner11-Feb-04 6:46
Christian Zellner11-Feb-04 6:46 
GeneralCDBConnection->m_pErrorInfo Pin
Chris Ulliott11-Feb-04 6:38
Chris Ulliott11-Feb-04 6:38 
GeneralFlickering at resizing on MFC app Pin
JimmyChu11-Feb-04 6:33
JimmyChu11-Feb-04 6:33 
GeneralRe: Flickering at resizing on MFC app Pin
Anonymous11-Feb-04 6:51
Anonymous11-Feb-04 6:51 
GeneralRe: Flickering at resizing on MFC app Pin
Roger Allen11-Feb-04 6:52
Roger Allen11-Feb-04 6:52 
You can reduce the amount of flickering by handling the WM_ERASEBKGND message. I usually do it like this:

BOOL CCommunicationView::OnEraseBkgnd(CDC* pDC) 
{
	static int dont_erase_indexes[] =
	{
// list your control ID's here
		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,
		IDC_AUTOREFINE_GRAPH,
		IDC_DIRECT_CONTROL_STATUS,
		IDC_ABORT_ASSAY
	};
	CRect	clip;
	pDC->SaveDC();
	for (int i = 0; i < sizeof(dont_erase_indexes) / sizeof(int); i++)
	{
		CWnd *pWnd = GetDlgItem(dont_erase_indexes[i]);
		if (pWnd && pWnd->IsWindowVisible())
		{
			pWnd->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
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
Generalvisual c++ Pin
11-Feb-04 6:26
suss11-Feb-04 6:26 
GeneralRe: visual c++ Pin
Antti Keskinen11-Feb-04 6:39
Antti Keskinen11-Feb-04 6:39 
GeneralRe: visual c++ Pin
Maximilien11-Feb-04 6:40
Maximilien11-Feb-04 6:40 
GeneralRe: visual c++ Pin
Roger Wright11-Feb-04 6:45
professionalRoger Wright11-Feb-04 6:45 
GeneralRe: visual c++ Pin
shultas11-Feb-04 15:47
shultas11-Feb-04 15:47 
GeneralPNG Loader sourcecode wanted Pin
Shifty Geezer11-Feb-04 5:11
Shifty Geezer11-Feb-04 5:11 
Generallinking CVF subroutine with VC++ source Pin
BlueMonkey6811-Feb-04 4:37
BlueMonkey6811-Feb-04 4:37 
GeneralRe: linking CVF subroutine with VC++ source Pin
Iain Clarke, Warrior Programmer11-Feb-04 6:08
Iain Clarke, Warrior Programmer11-Feb-04 6:08 
GeneralViewing internet packets Pin
Dev57811-Feb-04 4:14
Dev57811-Feb-04 4:14 
GeneralRe: Viewing internet packets Pin
Iain Clarke, Warrior Programmer11-Feb-04 6:23
Iain Clarke, Warrior Programmer11-Feb-04 6:23 
GeneralRe: Viewing internet packets Pin
Peter Weyzen11-Feb-04 7:36
Peter Weyzen11-Feb-04 7:36 
GeneralRe: Viewing internet packets Pin
valikac11-Feb-04 8:20
valikac11-Feb-04 8:20 
GeneralRe: Viewing internet packets Pin
Anonymous11-Feb-04 12:09
Anonymous11-Feb-04 12:09 
GeneralConsole to win app Pin
dr.eu11-Feb-04 2:36
dr.eu11-Feb-04 2:36 
GeneralRe: Console to win app Pin
Mike Dimmick11-Feb-04 2:54
Mike Dimmick11-Feb-04 2:54 
GeneralRe: Console to win app Pin
dr.eu11-Feb-04 3:12
dr.eu11-Feb-04 3:12 
GeneralRe: Console to win app Pin
jmkhael11-Feb-04 3:25
jmkhael11-Feb-04 3:25 

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.