From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- unicode/unicode.cpp | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 unicode/unicode.cpp (limited to 'unicode/unicode.cpp') diff --git a/unicode/unicode.cpp b/unicode/unicode.cpp new file mode 100644 index 0000000..09120f4 --- /dev/null +++ b/unicode/unicode.cpp @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "unicode/unicode.h" + +class CUnicodeWindows : public IUnicodeWindows +{ +public: + virtual LRESULT DefWindowProcW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam ) + { + return ::DefWindowProcW( hWnd, Msg, wParam, lParam ); + } + + virtual HWND CreateWindowExW( + DWORD dwExStyle, + LPCWSTR lpClassName, + LPCWSTR lpWindowName, + DWORD dwStyle, + int x, + int y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + LPVOID lpParam + ) + { + return ::CreateWindowExW( dwExStyle, lpClassName, lpWindowName, dwStyle, x, y, + nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam ); + } + + virtual ATOM RegisterClassW + ( + CONST WNDCLASSW *lpWndClass + ) + { + return ::RegisterClassW( lpWndClass ); + } + + virtual BOOL UnregisterClassW + ( + LPCWSTR lpClassName, + HINSTANCE hInstance + ) + { + return ::UnregisterClassW( lpClassName, hInstance ); + } +}; + +EXPOSE_SINGLE_INTERFACE( CUnicodeWindows, IUnicodeWindows, VENGINE_UNICODEINTERFACE_VERSION ); \ No newline at end of file -- cgit v1.2.3