Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. CreateWindow("myclass",...,WS_CHILD,...);
  2.  
  3. CreateWindow("myclass",...,WS_OVERLAPPEDWINDOW,...);
  4.  
  5. SetWindowLongPtr((HWND)handle,GWL_STYLE,style_1);
  6. SetWindowPos((HWND)handle,HWND_TOP,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
  7. SetWindowLongPtr((HWND)handle,GWL_EXSTYLE,style_0);
  8. SetWindowPos((HWND)handle,HWND_TOP,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
  9. if(style_1&WS_CHILD)
  10. {
  11. HWND owner=GetWindow((HWND)handle,GW_OWNER);
  12. SetParent((HWND)handle,owner);
  13. }
  14. else
  15. {SetParent((HWND)handle,NULL);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement