i want the window it hasn't the buttons of min,max,and close .i want to paint myself close button ,so i do it this way;
at first ,set the window property "ControlBox" to false;
then we intercept the window msg
0x86 WM_NCACTIVATE
0x85 WM_NCPAINT
then we intercept the mouseDown event msg
0xA1 WM_NCLBUTTONDOWN
my code :