Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "unicode/unicode.h"
  7. class CUnicodeWindows : public IUnicodeWindows
  8. {
  9. public:
  10. virtual LRESULT DefWindowProcW(
  11. HWND hWnd,
  12. UINT Msg,
  13. WPARAM wParam,
  14. LPARAM lParam )
  15. {
  16. return ::DefWindowProcW( hWnd, Msg, wParam, lParam );
  17. }
  18. virtual HWND CreateWindowExW(
  19. DWORD dwExStyle,
  20. LPCWSTR lpClassName,
  21. LPCWSTR lpWindowName,
  22. DWORD dwStyle,
  23. int x,
  24. int y,
  25. int nWidth,
  26. int nHeight,
  27. HWND hWndParent,
  28. HMENU hMenu,
  29. HINSTANCE hInstance,
  30. LPVOID lpParam
  31. )
  32. {
  33. return ::CreateWindowExW( dwExStyle, lpClassName, lpWindowName, dwStyle, x, y,
  34. nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam );
  35. }
  36. virtual ATOM RegisterClassW
  37. (
  38. CONST WNDCLASSW *lpWndClass
  39. )
  40. {
  41. return ::RegisterClassW( lpWndClass );
  42. }
  43. virtual BOOL UnregisterClassW
  44. (
  45. LPCWSTR lpClassName,
  46. HINSTANCE hInstance
  47. )
  48. {
  49. return ::UnregisterClassW( lpClassName, hInstance );
  50. }
  51. };
  52. EXPOSE_SINGLE_INTERFACE( CUnicodeWindows, IUnicodeWindows, VENGINE_UNICODEINTERFACE_VERSION );