Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SECURITY_ATTRIBUTES in threading Pin
Peter Weyzen11-Jul-08 13:56
Peter Weyzen11-Jul-08 13:56 
AnswerRe: SECURITY_ATTRIBUTES in threading Pin
zildjohn0111-Jul-08 14:14
zildjohn0111-Jul-08 14:14 
QuestionCCheckListBox in release mode, Windows XP in Windows classic theme Pin
tsvdevteam11-Jul-08 5:31
tsvdevteam11-Jul-08 5:31 
Joke[OT] Re: CCheckListBox in release mode, Windows XP in Windows classic theme Pin
David Crow11-Jul-08 6:08
David Crow11-Jul-08 6:08 
AnswerRe: CCheckListBox in release mode, Windows XP in Windows classic theme Pin
bob1697211-Jul-08 7:42
bob1697211-Jul-08 7:42 
GeneralRe: CCheckListBox in release mode, Windows XP in Windows classic theme Pin
tsvdevteam11-Jul-08 9:03
tsvdevteam11-Jul-08 9:03 
GeneralRe: CCheckListBox in release mode, Windows XP in Windows classic theme Pin
Bram van Kampen12-Jul-08 14:47
Bram van Kampen12-Jul-08 14:47 
QuestionUpdate only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 4:55
CrocodileBuck11-Jul-08 4:55 
Hi,

i want to update only a part of a view with UpdateAllViews().
I read that the simpliest way is to call UpdateAllViews() from the doc and pass a CRect to the view's OnUpdate().
The rect which is passed to the view's OnUpdate() ist the part which is updated.

But it wont work Cry | :(( , I tried it for some hours now, could you helpme? Confused | :confused:
Perhaps you know a tut which covers this problem i only found the simple UpdateAllViews(NULL)samples ?

Here is some source from me which updates the whole view doc.cpp:

CString CMyDoc::LoadFile(CString cstrSearchString, CString *ptrArrFileNames, CString cstrFileExtension, int iZaehler)
{
	m_iZaehler = iZaehler;
	ptrMlf->loadmyfile (cstrSearchString + m_ptrArrFileNames[iZaehler],cstrFileExtension);
	m_cstrText = ptrMlf->lf_cstrText;

	UpdateAllViews(NULL); // Calls OnUpdate of the view and updates the whole view !!!

	return m_cstrAusgabe;
}



Here the code from the view.cpp:

void CMyView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	CTheReaderDoc	 *pDoc	= GetDocument ();
	CRichEditCtrl	 &rCtrl = GetRichEditCtrl();	
	rCtrl.SetWindowText (pDoc->m_cstrAusgabe);
	rCtrl.SetFont(pDoc->m_ptrFont);
	rCtrl.SetModify(TRUE);	
}	


Many thanx & best regards
Wink | ;)
ShadowEater
AnswerRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 5:05
Mark Salsbery11-Jul-08 5:05 
AnswerRe: Update only a particial area of a View with UpdateAllViews(...) Pin
led mike11-Jul-08 5:18
led mike11-Jul-08 5:18 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 5:27
CrocodileBuck11-Jul-08 5:27 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 5:31
Mark Salsbery11-Jul-08 5:31 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 5:46
CrocodileBuck11-Jul-08 5:46 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 6:05
Mark Salsbery11-Jul-08 6:05 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 6:16
CrocodileBuck11-Jul-08 6:16 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 6:29
Mark Salsbery11-Jul-08 6:29 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 6:33
CrocodileBuck11-Jul-08 6:33 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 6:36
Mark Salsbery11-Jul-08 6:36 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 6:44
CrocodileBuck11-Jul-08 6:44 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 6:48
Mark Salsbery11-Jul-08 6:48 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 6:52
CrocodileBuck11-Jul-08 6:52 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 6:59
Mark Salsbery11-Jul-08 6:59 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
CrocodileBuck11-Jul-08 7:04
CrocodileBuck11-Jul-08 7:04 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
led mike11-Jul-08 8:52
led mike11-Jul-08 8:52 
GeneralRe: Update only a particial area of a View with UpdateAllViews(...) Pin
Mark Salsbery11-Jul-08 9:01
Mark Salsbery11-Jul-08 9:01 

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.