Frameless windows with snap function but without thickframe or modify the bg-color of border

泽 陈

Hi ya ,I have developed a frameless windows , and I disable the WS_CAPTION and WS_THICKFRAME by SetWindowLongPtr, It works pretty well, but it has a problem:it can not have the snap function(move the window to the top of screen and then it will maxinum).So I add the WS_THICKFRAME, and then it has a 6px white border(I can modify this color by changing the theme of windows),I handle the WM_NACALCSIZE and return 0 to prevent the default behaviour ,but it has a render bug,the client area 's size is not right.I want to know any possible I can add the snap function without thickframe just like usin

Continue reading...
 
Back
Top Bottom