summaryrefslogtreecommitdiff
path: root/unicode/unicode.cpp
blob: 09120f4020995f7e169141801cade266cab759f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 );