Click here to Skip to main content
15,891,920 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CArray in CMap Pin
Ștefan-Mihai MOGA12-Jul-08 23:06
professionalȘtefan-Mihai MOGA12-Jul-08 23:06 
GeneralRe: CArray in CMap Pin
Trupti Mehta13-Jul-08 0:36
Trupti Mehta13-Jul-08 0:36 
QuestionHow can create an SDI type project inside in another SDI type project? Pin
Le@rner12-Jul-08 2:28
Le@rner12-Jul-08 2:28 
AnswerRe: How can create an SDI type project inside in another SDI type project? Pin
Nelek14-Jul-08 21:06
protectorNelek14-Jul-08 21:06 
QuestionUpdate only a part of a View with OnUpdateAllViews 2nd ! Pin
CrocodileBuck12-Jul-08 2:05
CrocodileBuck12-Jul-08 2:05 
AnswerRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
Prasann Mayekar12-Jul-08 3:41
Prasann Mayekar12-Jul-08 3:41 
GeneralRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
CrocodileBuck12-Jul-08 4:09
CrocodileBuck12-Jul-08 4:09 
GeneralRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
CrocodileBuck12-Jul-08 4:11
CrocodileBuck12-Jul-08 4:11 
This is the code from the doc:
CString CON_UPDATE_DEMODoc::ChangeText()
{
	CRect MyRect(0,0, 100, 100);
	CObject* pHint = (CObject*)&MyRect;


	m_cstrAusgabe  = " BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER \r\n\ BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER";
	m_cstrAusgabe += " BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER \r\n\ BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER";
	m_cstrAusgabe += " BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER \r\n\ BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER";
	m_cstrAusgabe += " BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER \r\n\ BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER";
	m_cstrAusgabe += " BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER \r\n\ BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER BLUBBER";


	UpdateAllViews(NULL, 1, pHint);
	return m_cstrAusgabe;
}




and this from the view:
void CON_UPDATE_DEMOView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	CMainFrame			*pMF	= DYNAMIC_DOWNCAST(CMainFrame,	AfxGetMainWnd());
	CON_UPDATE_DEMODoc	*pDoc	= DYNAMIC_DOWNCAST(CON_UPDATE_DEMODoc,	pMF->GetActiveDocument());	// 
	


	m_Rich.SetWindowText(pDoc->m_cstrAusgabe);
	if (pHint != 0)
	{	
		InvalidateRect((CRect*)pHint, TRUE);

		m_Rich.SetWindowText(pDoc->m_cstrAusgabe);
		return;

	}
	m_Rich.SetModify(TRUE);	
	CView::OnUpdate(pSender, lHint, pHint);
	
}

QuestionRe: Update only a part of a View with OnUpdateAllViews 2nd ! Pin
David Crow12-Jul-08 7:38
David Crow12-Jul-08 7:38 
Questionstring table error Pin
erfi12-Jul-08 1:20
erfi12-Jul-08 1:20 
AnswerRe: string table error Pin
Bram van Kampen12-Jul-08 13:58
Bram van Kampen12-Jul-08 13:58 
QuestionCBitmapbutton Behaviour Pin
AnithaSubramani12-Jul-08 0:10
AnithaSubramani12-Jul-08 0:10 
AnswerRe: CBitmapbutton Behaviour Pin
Gary R. Wheeler12-Jul-08 3:16
Gary R. Wheeler12-Jul-08 3:16 
GeneralRe: CBitmapbutton Behaviour Pin
AnithaSubramani14-Jul-08 4:46
AnithaSubramani14-Jul-08 4:46 
GeneralRe: CBitmapbutton Behaviour Pin
Gary R. Wheeler14-Jul-08 9:37
Gary R. Wheeler14-Jul-08 9:37 
Questiontab controls in vc++ Pin
ani_ikram11-Jul-08 22:50
ani_ikram11-Jul-08 22:50 
AnswerRe: tab controls in vc++ Pin
sudhir_Kumar11-Jul-08 23:04
sudhir_Kumar11-Jul-08 23:04 
GeneralRe: tab controls in vc++ Pin
ani_ikram11-Jul-08 23:11
ani_ikram11-Jul-08 23:11 
GeneralRe: tab controls in vc++ Pin
sudhir_Kumar11-Jul-08 23:28
sudhir_Kumar11-Jul-08 23:28 
GeneralRe: tab controls in vc++ Pin
tkondal12-Jul-08 9:39
tkondal12-Jul-08 9:39 
Questionpls help newbi MFC VC++ reading from MDB Pin
GPat2411-Jul-08 22:21
GPat2411-Jul-08 22:21 
QuestionHow can fix size of SDI type application? Pin
Le@rner11-Jul-08 20:23
Le@rner11-Jul-08 20:23 
AnswerRe: How can fix size of SDI type application? Pin
sudhir_Kumar11-Jul-08 23:02
sudhir_Kumar11-Jul-08 23:02 
AnswerRe: How can fix size of SDI type application? Pin
krmed12-Jul-08 3:28
krmed12-Jul-08 3:28 
QuestionPrint Preview on SDI splitter application. Pin
Le@rner11-Jul-08 19:07
Le@rner11-Jul-08 19:07 

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.