CWindow::SetParent
Zmienia okno nadrzędne.
HWND SetParent(
HWND hWndNewParent
) throw();
Uwagi
Zobacz SetParent w Windows SDK.
Przykład
// The following example attaches a HWND to the CWindow object
// and sets the hWndParent as the parent window of the
// window wrapped by CWindow object using CWindow::SetParent.
CWindow myWindow;
myWindow.Attach(hWndChild);
HWND hWndPrevParent = myWindow.SetParent(hWndParent);
Wymagania
Nagłówek: atlwin.h