Click here to Skip to main content
12,297,447 members (61,664 online)

C / C++ / MFC

 
AnswerRe: Reading a comma delimited file to array Pin
Richard MacCutchan13-Feb-13 22:17
mvpRichard MacCutchan13-Feb-13 22:17 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster14-Feb-13 4:21
memberJeffrey Webster14-Feb-13 4:21 
GeneralRe: Reading a comma delimited file to array Pin
Richard MacCutchan14-Feb-13 5:14
mvpRichard MacCutchan14-Feb-13 5:14 
GeneralRe: Reading a comma delimited file to array Pin
Jeffrey Webster14-Feb-13 9:23
memberJeffrey Webster14-Feb-13 9:23 
GeneralRe: Reading a comma delimited file to array Pin
DavidCrow14-Feb-13 5:14
memberDavidCrow14-Feb-13 5:14 
QuestionImplementing of Interruption Pin
mohammad torabi13-Feb-13 10:14
membermohammad torabi13-Feb-13 10:14 
AnswerRe: Implementing of Interruption Pin
Albert Holguin13-Feb-13 11:49
memberAlbert Holguin13-Feb-13 11:49 
AnswerRe: Implementing of Interruption Pin
Stefan_Lang15-Feb-13 3:39
memberStefan_Lang15-Feb-13 3:39 
AnswerRe: Implementing of Interruption Pin
Max_Power_Up26-Feb-13 5:33
memberMax_Power_Up26-Feb-13 5:33 
QuestionLine number Add-in Pin
Krishnakumartg13-Feb-13 5:20
memberKrishnakumartg13-Feb-13 5:20 
QuestionRe: Line number Add-in Pin
Maximilien13-Feb-13 8:14
memberMaximilien13-Feb-13 8:14 
SuggestionRe: Line number Add-in Pin
Albert Holguin13-Feb-13 8:59
memberAlbert Holguin13-Feb-13 8:59 
AnswerRe: Line number Add-in Pin
jschell13-Feb-13 10:12
memberjschell13-Feb-13 10:12 
QuestionCombine two windows Pin
Krishnakumartg13-Feb-13 5:16
memberKrishnakumartg13-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?

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
memberprabhjot.cgc13-Feb-13 17:29 
Questionc Pin
Member 983250613-Feb-13 2:39
memberMember 983250613-Feb-13 2:39 
AnswerRe: c Pin
Orjan Westin13-Feb-13 2:49
memberOrjan Westin13-Feb-13 2:49 
AnswerRe: c Pin
Matthew Faithfull13-Feb-13 2:51
memberMatthew Faithfull13-Feb-13 2:51 
AnswerRe: c Pin
Richard MacCutchan13-Feb-13 3:22
mvpRichard MacCutchan13-Feb-13 3:22 
QuestionRibbon To existing MFC Application Pin
yogeshs12-Feb-13 19:53
memberyogeshs12-Feb-13 19:53 
AnswerRe: Ribbon To existing MFC Application Pin
Richard MacCutchan12-Feb-13 22:17
mvpRichard MacCutchan12-Feb-13 22:17 
QuestionCAsyncSocket exception Pin
ForNow12-Feb-13 19:47
memberForNow12-Feb-13 19:47 
AnswerRe: CAsyncSocket exception Pin
Orjan Westin12-Feb-13 23:04
memberOrjan Westin12-Feb-13 23:04 
GeneralRe: CAsyncSocket exception Pin
ForNow13-Feb-13 6:10
memberForNow13-Feb-13 6:10 
Questiondisabele right click popup menu in win32 browser control Pin
venkatesh5286712-Feb-13 19:30
membervenkatesh5286712-Feb-13 19:30 
AnswerRe: disabele right click popup menu in win32 browser control Pin
_AnsHUMAN_ 13-Feb-13 2:35
group_AnsHUMAN_ 13-Feb-13 2:35 
GeneralRe: disabele right click popup menu in win32 browser control Pin
venkatesh5286713-Feb-13 3:41
membervenkatesh5286713-Feb-13 3:41 
AnswerRe: disabele right click popup menu in win32 browser control Pin
Stephen Hewitt13-Feb-13 21:49
memberStephen Hewitt13-Feb-13 21:49 
QuestionHow to retain row color while highlighting in Clist control Pin
HareeshaK12-Feb-13 16:33
memberHareeshaK12-Feb-13 16:33 
AnswerRe: How to retain row color while highlighting in Clist control Pin
Jochen Arndt12-Feb-13 22:48
memberJochen Arndt12-Feb-13 22:48 
Questionx86 build Pin
john563212-Feb-13 3:56
memberjohn563212-Feb-13 3:56 
QuestionRe: x86 build Pin
DavidCrow12-Feb-13 4:49
memberDavidCrow12-Feb-13 4:49 
AnswerRe: x86 build Pin
Albert Holguin12-Feb-13 5:27
memberAlbert Holguin12-Feb-13 5:27 
QuestionSetupDiEnumDeviceInterfaces not Working. Pin
yogeshs11-Feb-13 21:49
memberyogeshs11-Feb-13 21:49 
AnswerRe: SetupDiEnumDeviceInterfaces not Working. Pin
yogeshs11-Feb-13 22:10
memberyogeshs11-Feb-13 22:10 
SuggestionRe: SetupDiEnumDeviceInterfaces not Working. Pin
Albert Holguin12-Feb-13 5:30
memberAlbert Holguin12-Feb-13 5:30 
GeneralRe: SetupDiEnumDeviceInterfaces not Working. Pin
yogeshs12-Feb-13 19:49
memberyogeshs12-Feb-13 19:49 
QuestionHow to control the volume Programitacally in C/C++? Pin
sravanthi peddi11-Feb-13 18:22
membersravanthi peddi11-Feb-13 18:22 
AnswerRe: How to control the volume Programitacally in C/C++? Pin
Jibesh11-Feb-13 21:12
memberJibesh11-Feb-13 21:12 
QuestionHow to change master volume programmatically? Pin
sairam47711-Feb-13 18:15
membersairam47711-Feb-13 18:15 
AnswerRe: How to change master volume programmatically? Pin
Jibesh11-Feb-13 21:11
memberJibesh11-Feb-13 21:11 
AnswerRe: How to change master volume programmatically? Pin
DavidCrow12-Feb-13 5:40
memberDavidCrow12-Feb-13 5:40 
Questionwin32 dialogbox Pin
venkatesh5286711-Feb-13 6:47
membervenkatesh5286711-Feb-13 6:47 
AnswerRe: win32 dialogbox Pin
jibesh11-Feb-13 6:57
memberjibesh11-Feb-13 6:57 
QuestionRe: win32 dialogbox Pin
«_Superman_»11-Feb-13 18:03
member«_Superman_»11-Feb-13 18:03 
AnswerRe: win32 dialogbox Pin
venkatesh5286711-Feb-13 20:37
membervenkatesh5286711-Feb-13 20:37 
GeneralRe: win32 dialogbox Pin
«_Superman_»11-Feb-13 20:47
member«_Superman_»11-Feb-13 20:47 
GeneralRe: win32 dialogbox Pin
venkatesh5286711-Feb-13 21:06
membervenkatesh5286711-Feb-13 21:06 
GeneralRe: win32 dialogbox Pin
venkatesh5286711-Feb-13 21:11
membervenkatesh5286711-Feb-13 21:11 
GeneralRe: win32 dialogbox Pin
«_Superman_»11-Feb-13 22:13
member«_Superman_»11-Feb-13 22:13 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid