From 51a74dc9c66b76dff795a9da3874602f3f0f0285 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 12 Feb 2021 20:52:30 +0200 Subject: Windows: Custom frame behavior A borderless SDL window gets no standard window behavior, so this commit implements support for some of them. There is special handling for the window frame and various snapping modes. Not quite finished yet... It might make sense to research if a custom window class could work with this app (with SDL); could be less work. --- src/win32.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/win32.h') diff --git a/src/win32.h b/src/win32.h index b5bc0b45..b988c302 100644 --- a/src/win32.h +++ b/src/win32.h @@ -21,8 +21,14 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once + +#include #include +#include + +iDeclareType(Window) void setDPIAware_Win32(void); float desktopDPI_Win32(void); void useExecutableIconResource_SDLWindow(SDL_Window *win); +void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window); -- cgit v1.2.3