g une classe CPhoto avec un objet fenêtre client, en viedolive sur 1/4 de ma fenetre parent. je souhaite afficher 4 fenetres sur tt l'ecran dont 3 figées et une qui reste en videolive. Comment charger une nouvelle fenetre à partir de la premiere
fenetre client:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
bool CPhoto::Create(HINSTANCE hInst, HWND hParent)
{
if (hWnd != NULL) return false;
 
hParentWnd = hParent;
hWnd = CreateWindow("Photo",
					"",
					WS_CHILD | WS_BORDER,
					0,
					0,
					360,
					291,
					hParentWnd,
					NULL,
					hInst,
					NULL);
if (hWnd != NULL) ShowWindow(hWnd, SW_SHOW);
return (hWnd != NULL);
}
 
 
 
CPhoto::~CPhoto()
{
Destroy();
}
 
 
 
void CPhoto::Destroy(void)
{
if (hWnd == NULL) return ;
DestroyWindow(hWnd);
}
fenetre parent:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
	wc.style = 0;
	wc.lpfnWndProc = WinPhotoProc;
	wc.cbClsExtra = 0;
	wc.cbWndExtra = 0;
	wc.hInstance = hIns;
	wc.hIcon = NULL;
	wc.hCursor = LoadCursor(NULL, IDC_ARROW);
	wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
	wc.lpszMenuName = "";
	wc.lpszClassName = "Photo";
 
	if (!RegisterClass(&wc))
		{
		//Message("RegisterClass(\"WinUra\") impossible\n");
		return 0;
		}
 
    hInst = hIns;
 
    hWnd = CreateWindow("WinUraWC",
						"WinUra",
						WS_OVERLAPPEDWINDOW,
						CW_USEDEFAULT,
						CW_USEDEFAULT,
						CW_USEDEFAULT,
						CW_USEDEFAULT,
						NULL,
						NULL,
						hIns,
						NULL);
 
    ShowWindow(hWnd, nCmdShow);
    UpdateWindow(hWnd);
	if (!Photo0.Create(hIns, hWnd)) return 0;
 
	if (!Init(Photo0.hWnd))
		return 0;
	ForceClientAreaSize(hWnd, 720, 578);
@+