| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "Platform/BsPlatform.h"
- #define WIN32_LEAN_AND_MEAN
- #if !defined(NOMINMAX) && defined(_MSC_VER)
- # define NOMINMAX // Required to stop windows.h messing up std::min
- #endif
- #include <windows.h>
- #include <windowsx.h>
- #define WM_BS_SETCAPTURE WM_USER + 101
- #define WM_BS_RELEASECAPTURE WM_USER + 102
- namespace bs
- {
- /** @addtogroup Platform-Internal
- * @{
- */
- /** Various Win32 specific functionality. Contains the main message loop. */
- class BS_CORE_EXPORT Win32Platform : public Platform
- {
- public:
- /** Called when a new DropTarget gets created. */
- static void registerDropTarget(DropTarget* target);
- /** Called just before a DropTarget gets destroyed. */
- static void unregisterDropTarget(DropTarget* target);
- /** Main message loop callback that processes messages received from windows. */
- static LRESULT CALLBACK _win32WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
- };
- /** @} */
- }
|