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

C / C++ / MFC

 
AnswerRe: Not using .Net Technology Pin
Cedric Moonen30-Sep-08 20:33
Cedric Moonen30-Sep-08 20:33 
AnswerRe: Not using .Net Technology Pin
CPallini30-Sep-08 21:50
mveCPallini30-Sep-08 21:50 
AnswerRe: Not using .Net Technology Pin
Hamid_RT30-Sep-08 22:01
Hamid_RT30-Sep-08 22:01 
QuestionEnumerating Files in a Folder Pin
Bram van Kampen30-Sep-08 14:14
Bram van Kampen30-Sep-08 14:14 
AnswerRe: Enumerating Files in a Folder Pin
Saurabh.Garg30-Sep-08 14:33
Saurabh.Garg30-Sep-08 14:33 
GeneralRe: Enumerating Files in a Folder Pin
Bram van Kampen30-Sep-08 15:04
Bram van Kampen30-Sep-08 15:04 
GeneralRe: Enumerating Files in a Folder Pin
Saurabh.Garg1-Oct-08 20:10
Saurabh.Garg1-Oct-08 20:10 
QuestionParent Forms Pin
Sarriss30-Sep-08 6:05
Sarriss30-Sep-08 6:05 
With API and Not using MDI i have created two forms

set one to parent and used it to set the other as child,
Im using different class names etc for them both

but they still appear to be independant of each other, as in doesnt appear like an mdi would

is this because unless i use API/MDI it wont appear like that or am i missing a line of code

The two windows both create and show fine, and as i said the child sets the parent in CreateWindowEx - which is
in WndChild.CreateChild()


HWND hParent;
HWND hChild;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{

	MSG Msg;
	char *ClassName = "MainClass";
	char *WndName = "Sarriss";
	char *ChildClassName = "ChildClass";
	char *ChildWndName = "Sarriss";

//----------------------------------------------------------
//---------Create Parent Window-----------------------------

	RegWnd WinApp(hInstance, ClassName, WndProc);
	WinApp.Register();

	CreateWnd Wnd;
	Wnd.CreateParent(hInstance, ClassName, WndName);
	Wnd.show();
	hParent = Wnd;
//----------------------------------------------------------
//----------------------------------------------------------

//----------------------------------------------------------
//---------Create Child Window-----------------------------
	
	RegWnd WinAppChild(hInstance, ChildClassName, WndProcChild);
	WinAppChild.Register();

	CreateWnd WndChild;
	WndChild.CreateChild(hInstance, ChildClassName, ChildWndName, hParent);
	WndChild.show();
	hChild = WndChild;

//----------------------------------------------------------
//----------------------------------------------------------

QuestionRe: Parent Forms Pin
Mark Salsbery30-Sep-08 6:25
Mark Salsbery30-Sep-08 6:25 
AnswerRe: Parent Forms Pin
Sarriss30-Sep-08 7:37
Sarriss30-Sep-08 7:37 
GeneralRe: Parent Forms Pin
Mark Salsbery30-Sep-08 8:31
Mark Salsbery30-Sep-08 8:31 
GeneralRe: Parent Forms Pin
Sarriss30-Sep-08 9:26
Sarriss30-Sep-08 9:26 
AnswerRe: Parent Forms Pin
led mike30-Sep-08 7:57
led mike30-Sep-08 7:57 
GeneralRe: Parent Forms Pin
Sarriss30-Sep-08 8:04
Sarriss30-Sep-08 8:04 
QuestionRe: Parent Forms Pin
Mark Salsbery30-Sep-08 8:32
Mark Salsbery30-Sep-08 8:32 
AnswerRe: Parent Forms Pin
Sarriss30-Sep-08 9:24
Sarriss30-Sep-08 9:24 
GeneralRe: Parent Forms Pin
Mark Salsbery30-Sep-08 9:30
Mark Salsbery30-Sep-08 9:30 
GeneralRe: Parent Forms Pin
Sarriss30-Sep-08 9:33
Sarriss30-Sep-08 9:33 
GeneralRe: Parent Forms Pin
Mark Salsbery30-Sep-08 9:58
Mark Salsbery30-Sep-08 9:58 
GeneralRe: Parent Forms Pin
Sarriss30-Sep-08 10:31
Sarriss30-Sep-08 10:31 
GeneralRe: Parent Forms Pin
Hamid_RT30-Sep-08 10:50
Hamid_RT30-Sep-08 10:50 
GeneralRe: Parent Forms Pin
Sarriss30-Sep-08 11:04
Sarriss30-Sep-08 11:04 
QuestionTracking application memory usage Pin
JoeSchmoe00730-Sep-08 5:25
JoeSchmoe00730-Sep-08 5:25 
AnswerRe: Tracking application memory usage Pin
Rick York30-Sep-08 6:17
mveRick York30-Sep-08 6:17 
GeneralRe: Tracking application memory usage Pin
JoeSchmoe00730-Sep-08 6:59
JoeSchmoe00730-Sep-08 6:59 

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.