Files
BlitzUtility/Utility/WindowMessageHandler.h
T
Michael Fabian Dirks 8049964bd1 Update BlitzUtility:
- New DECLS
- Begin wrapping __cdecl sqlite3 into __stdcall functions (sqlite3 doesn't understand __stdcall)
- Use __stdcall and /EXPORT instead of __cdecl to not corrupt the stack.
- Implement two versions of the Indexer, V1 for really fast access and V2 for memory saving.

Signed-off-by: Michael Fabian Dirks <michael.dirks@realitybends.de>
2015-06-06 14:09:40 +02:00

25 lines
593 B
C++

#pragma once
#include "dllmain.h"
#include <list>
struct WindowUserData {
HWND hwnd;
WNDPROC oWindowProcedure;
LONG oUserData;
// WM_SIZE
bool WindowWasResized;
uint32_t WindowClientWidth, WindowClientHeight;
// WM_DESTROY, WM_CLOSE
uint32_t DestroyCount, CloseCount;
};
void WindowMessageHandler_OnProcessAttach();
void WindowMessageHandler_OnProcessDetach();
LRESULT CALLBACK WindowMessageHandler_Procedure(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
DLL_EXPORT void WindowMessageHandler_Install(HWND hwnd);
DLL_EXPORT void WindowMessageHandler_Uninstall(HWND hwnd);