0

I wanna make a borderless resizable window in c language using TDM-GCC compilers.

I use built-in TDM-GCC library and CreateWindowEX(...) function to make a window.

I know that I can use WS_POPUP | WS_SIZEBOX | WS_MAXIMIZEBOX | WS_MINIMIZEBOX to make titleless resizable window; but I wanna make borderless window exactly with no border.

Thank you.

Tony
  • 51
  • 7
  • How is the user going to resize the window if there is no border to grab? `WS_SIZEBOX` [is a synonym of](https://learn.microsoft.com/de-de/windows/win32/winmsg/window-styles) `WS_THICKFRAME`. I think what you want can't be done just be means of setting window styles. – M Oehm Jan 11 '20 at 19:07
  • I mean transparent or invisible border. Like electron frameless window. – Tony Jan 11 '20 at 19:15
  • Respond to `WM_NCHITTEST` with one of the resizing constants when the mouse is over the appropriate part of your window. – Jonathan Potter Jan 11 '20 at 19:23
  • I noticed that Jonathan pointed out that the method can solve this problem. You can refer to [this](https://stackoverflow.com/questions/54639341/how-to-get-a-windows-10-style-transparent-border). Although it is delphi, the calling method is similar. – Strive Sun Jan 13 '20 at 10:04

0 Answers0