Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CreateWindow("myclass",...,WS_CHILD,...);
- CreateWindow("myclass",...,WS_OVERLAPPEDWINDOW,...);
- SetWindowLongPtr((HWND)handle,GWL_STYLE,style_1);
- SetWindowPos((HWND)handle,HWND_TOP,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
- SetWindowLongPtr((HWND)handle,GWL_EXSTYLE,style_0);
- SetWindowPos((HWND)handle,HWND_TOP,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
- if(style_1&WS_CHILD)
- {
- HWND owner=GetWindow((HWND)handle,GW_OWNER);
- SetParent((HWND)handle,owner);
- }
- else
- {SetParent((HWND)handle,NULL);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement