CWindow::Attach
Вложение окно, определенное hWndNew к объекту CWindow.
void Attach(
HWND hWndNew
) throw();
Параметры
- hWndNew
[in] Дескриптор окна.
Пример
//The following example attaches an HWND to the CWindow object
HWND hWnd = ::GetDesktopWindow();
CWindow myWindow;
myWindow.Attach(hWnd);
Требования
Header: atlwin.h