MeshLib C++ Docs
Loading...
Searching...
No Matches
MRWin32MessageHandler.h
Go to the documentation of this file.
1#pragma once
2#ifdef _WIN32
3
4#include "MRSignalCombiners.h"
5#include "MRMesh/MRSignal.h"
6
7namespace MR
8{
9
10class Win32MessageHandler : public std::enable_shared_from_this<Win32MessageHandler>
11{
12 struct Private {};
13
14public:
15 Win32MessageHandler( Private, HWND window );
16 ~Win32MessageHandler();
17 static std::shared_ptr<Win32MessageHandler> getHandler( HWND window );
18
19 bool isValid() const;
20
21 boost::signals2::signal<bool ( HWND window, UINT message, WPARAM wParam, LPARAM lParam ), StopOnTrueCombiner> onMessage;
22
23 static LRESULT WINAPI WindowSubclassProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
24
25private:
26 HWND window_;
27 LONG_PTR parentProc_;
28};
29
30} // namespace MR
31
32#endif
Definition MRCameraOrientationPlugin.h:8