I’m trying to make a custom Frame with a custom caption bar. I can easily hide the window decorations using style = wx.DEFAULT_FRAME_STYLE ^ (wx.CAPTION | wx.RESIZE_BORDER). However, I need the frame to be resizable. Dropping the RESIZE_BORDER flag returns the functionality, but I’m left with a small caption at the top of the window.
I was looking through these awesome examples thinking I was doing something wrong, but they have the same issue.
I also tried drawing over the caption with a WindowDC, but that doesn’t seem to work either (or I’m doing it wrong). ScreenDC kinda works, but it’s not pretty.
I recall being able hide the caption and retain resizing, but I suspect it has something to do with Windows 10. Any help is greatly appreciated!
Windows 10 20H2