Click here to Skip to main content
15,907,000 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDeep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
hrishiS3-Dec-09 22:27
hrishiS3-Dec-09 22:27 
AnswerRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
Cedric Moonen3-Dec-09 22:55
Cedric Moonen3-Dec-09 22:55 
GeneralRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
hrishiS3-Dec-09 23:02
hrishiS3-Dec-09 23:02 
AnswerRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
Rajesh R Subramanian3-Dec-09 23:12
professionalRajesh R Subramanian3-Dec-09 23:12 
GeneralRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
Cedric Moonen3-Dec-09 23:13
Cedric Moonen3-Dec-09 23:13 
GeneralRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
hrishiS3-Dec-09 23:59
hrishiS3-Dec-09 23:59 
GeneralRe: Deep copy and Shallow copy w.r.t Copy Constructor and Assignment Operator Pin
Cedric Moonen4-Dec-09 0:12
Cedric Moonen4-Dec-09 0:12 
QuestionHow can I close an CChildFrame within CHtmlView ? [modified] Pin
mesajflaviu3-Dec-09 22:14
mesajflaviu3-Dec-09 22:14 
I have an MDI application with CHtmlView. In CInvoiceHtmlView::OnBeforeNavigate2(...)I see if a special button is pressed. When is pressed , I would like to close child frame , but I don't know where I do that ...
Here is my trials :

<br />
void CInvoiceHtmlView::OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
<br />
	if(m_bProcessNavigate)		// set not very first time<br />
	{<br />
		CString sBytes;<br />
<br />
		if(baPostedData.GetSize())<br />
		{<br />
			for(int i = 0;i < baPostedData.GetSize();i++)sBytes += (char)baPostedData[i];<br />
		}<br />
<br />
		sBytes = sBytes.Left(7);<br />
		if(sBytes == "button2")m_bClose = TRUE;<br />
	}<br />
<br />
	CHtmlView::OnBeforeNavigate2(lpszURL, nFlags,	lpszTargetFrameName, baPostedData, lpszHeaders, pbCancel);<br />
}<br />

now : m_bClose show me if special button was fired , but I don't know how can I use this to close child window ...

modified on Friday, December 4, 2009 4:51 AM

Questionmulti-processes's memory sharing problem? Pin
nenfa3-Dec-09 19:45
nenfa3-Dec-09 19:45 
QuestionRe: multi-processes's memory sharing problem? Pin
norish3-Dec-09 22:12
norish3-Dec-09 22:12 
AnswerRe: multi-processes's memory sharing problem? Pin
Michael Schubert4-Dec-09 5:25
Michael Schubert4-Dec-09 5:25 
GeneralRe: multi-processes's memory sharing problem? Pin
nenfa7-Dec-09 20:08
nenfa7-Dec-09 20:08 
QuestionAccessing Dialog member Variable problem Pin
kamalilam3-Dec-09 19:30
kamalilam3-Dec-09 19:30 
AnswerRe: Accessing Dialog member Variable problem Pin
«_Superman_»3-Dec-09 19:40
professional«_Superman_»3-Dec-09 19:40 
AnswerRe: Accessing Dialog member Variable problem Pin
Madhu Nair3-Dec-09 19:44
Madhu Nair3-Dec-09 19:44 
AnswerRe: Accessing Dialog member Variable problem Pin
Cedric Moonen3-Dec-09 20:10
Cedric Moonen3-Dec-09 20:10 
AnswerRe: Accessing Dialog member Variable problem Pin
Rajesh R Subramanian3-Dec-09 21:14
professionalRajesh R Subramanian3-Dec-09 21:14 
QuestionWhich window has the focus [modified] Pin
SujayG3-Dec-09 18:17
SujayG3-Dec-09 18:17 
AnswerRe: Which window has the focus Pin
«_Superman_»3-Dec-09 18:21
professional«_Superman_»3-Dec-09 18:21 
GeneralRe: Which window has the focus Pin
SujayG3-Dec-09 18:31
SujayG3-Dec-09 18:31 
GeneralRe: Which window has the focus [modified] Pin
Madhu Nair3-Dec-09 19:28
Madhu Nair3-Dec-09 19:28 
AnswerRe: Which window has the focus Pin
vasu_sri3-Dec-09 20:18
vasu_sri3-Dec-09 20:18 
QuestionIs there a convenient way to change a System environment variable in MFC? Pin
Erik3-Dec-09 18:16
Erik3-Dec-09 18:16 
AnswerRe: Is there a convenient way to change a System environment variable in MFC? Pin
T21023-Dec-09 19:27
T21023-Dec-09 19:27 
GeneralRe: Is there a convenient way to change a System environment variable in MFC? Pin
Erik3-Dec-09 23:36
Erik3-Dec-09 23:36 

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.