Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HWND myWindow; //Handle to my application window
- HWND externalWindow; //Handle to external application window
- SetParent(myWindow,externalWindow);
- //Remove WS_POPUP style and add WS_CHILD style
- DWORD style = GetWindowLong(myWindow,GWL_STYLE);
- style = style & ~(WS_POPUP);
- style = style | WS_CHILD;
- SetWindowLong(myWindow,GWL_STYLE,style);
Add Comment
Please, Sign In to add comment