Prepare UI support

This commit is contained in:
momo5502
2025-05-17 11:50:44 +02:00
parent ce431115b5
commit a2b3b5f1c2
3 changed files with 77 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
#include "registry.hpp"
#include "network.hpp"
#include "threading.hpp"
#include "window.hpp"
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop

View File

@@ -0,0 +1,40 @@
#pragma once
using pointer = uint64_t;
#ifndef OS_WINDOWS
typedef struct tagPOINT
{
LONG x;
LONG y;
} POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT;
#endif
using wparam = pointer;
using lparam = pointer;
using lresult = pointer;
typedef struct _LARGE_STRING
{
ULONG Length;
ULONG MaximumLength : 31;
ULONG bAnsi : 1;
pointer Buffer;
} LARGE_STRING;
using hwnd = pointer;
using hmenu = pointer;
using hinstance = pointer;
struct msg
{
hwnd hwnd;
UINT message;
wparam wParam;
lparam lParam;
DWORD time;
POINT pt;
#ifdef _MAC
DWORD lPrivate;
#endif
};