Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: upload data using xmlhttp( need an urgent help) Pin
Richard MacCutchan14-Feb-13 0:47
mveRichard MacCutchan14-Feb-13 0:47 
GeneralMessage Closed Pin
14-Feb-13 18:33
Member 981141114-Feb-13 18:33 
GeneralRe: upload data using xmlhttp( need an urgent help) Pin
Richard MacCutchan14-Feb-13 22:52
mveRichard MacCutchan14-Feb-13 22:52 
GeneralMessage Closed Pin
15-Feb-13 18:30
Member 981141115-Feb-13 18:30 
GeneralRe: upload data using xmlhttp( need an urgent help) Pin
Richard MacCutchan15-Feb-13 22:10
mveRichard MacCutchan15-Feb-13 22:10 
QuestionReading a comma delimited file to array Pin
Jeffrey Webster13-Feb-13 14:39
Jeffrey Webster13-Feb-13 14:39 
AnswerRe: Reading a comma delimited file to array Pin
Sivaraman Dhamodharan13-Feb-13 19:10
Sivaraman Dhamodharan13-Feb-13 19:10 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster13-Feb-13 20:25
Jeffrey Webster13-Feb-13 20:25 
GeneralRe: Reading a comma delimited file to array Pin
Graham Breach13-Feb-13 21:33
Graham Breach13-Feb-13 21:33 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster14-Feb-13 4:15
Jeffrey Webster14-Feb-13 4:15 
AnswerRe: Reading a comma delimited file to array Pin
Richard MacCutchan13-Feb-13 22:17
mveRichard MacCutchan13-Feb-13 22:17 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster14-Feb-13 4:21
Jeffrey Webster14-Feb-13 4:21 
GeneralRe: Reading a comma delimited file to array Pin
Richard MacCutchan14-Feb-13 5:14
mveRichard MacCutchan14-Feb-13 5:14 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster14-Feb-13 9:23
Jeffrey Webster14-Feb-13 9:23 
GeneralRe: Reading a comma delimited file to array Pin
David Crow14-Feb-13 5:14
David Crow14-Feb-13 5:14 
QuestionImplementing of Interruption Pin
mohammad torabi13-Feb-13 10:14
mohammad torabi13-Feb-13 10:14 
AnswerRe: Implementing of Interruption Pin
Albert Holguin13-Feb-13 11:49
professionalAlbert Holguin13-Feb-13 11:49 
AnswerRe: Implementing of Interruption Pin
Stefan_Lang15-Feb-13 3:39
Stefan_Lang15-Feb-13 3:39 
AnswerRe: Implementing of Interruption Pin
Shaheed Legion26-Feb-13 5:33
Shaheed Legion26-Feb-13 5:33 
QuestionLine number Add-in Pin
Krishnakumartg13-Feb-13 5:20
Krishnakumartg13-Feb-13 5:20 
QuestionRe: Line number Add-in Pin
Maximilien13-Feb-13 8:14
Maximilien13-Feb-13 8:14 
SuggestionRe: Line number Add-in Pin
Albert Holguin13-Feb-13 8:59
professionalAlbert Holguin13-Feb-13 8:59 
AnswerRe: Line number Add-in Pin
jschell13-Feb-13 10:12
jschell13-Feb-13 10:12 
QuestionCombine two windows Pin
Krishnakumartg13-Feb-13 5:16
Krishnakumartg13-Feb-13 5:16 
Hi,

I am trying to prepare a test application that combines two windows. I visualize that if one window is dragged, the other one also drags automatically.

For this,
1. I created a dialog based app
2. In button click created a new window (other than dialog apps window). And the new window is attached with the dialog apps window.

But after the button click whole the app hangs. Unable to touch the windows.

The code is as follows. Could you please help?

C++
CWnd NewWindow;
void CAttachDlg::OnButton1() 
{
	CRect crect( 0, 0, 500, 500 );
	RECT rect;
	rect.left = 0;
	rect.top = 0;
	rect.right = 100;
	rect.bottom = 100;
	CString csClassName = AfxRegisterWndClass( 0 );
	
	BOOL bReturn = NewWindow.Create( csClassName, "Test", WS_POPUP | WS_VISIBLE, crect, this, 0 );
	RECT wRECT;
	GetWindowRect( &wRECT );
	wRECT.right = wRECT.left - 1;
	wRECT.left = wRECT.left - 100;

	NewWindow.MoveWindow( &wRECT, TRUE );
	this->Attach( NewWindow.operator HWND());
}

Krishnakumar TG

AnswerRe: Combine two windows Pin
prabhjot.cgc13-Feb-13 17:29
prabhjot.cgc13-Feb-13 17:29 

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.