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{
11
12
13class Win32MessageHandler : public std::enable_shared_from_this<Win32MessageHandler>
14{
15 struct Private {};
16
17public:
18 Win32MessageHandler( Private, HWND window );
19 ~Win32MessageHandler();
20 static std::shared_ptr<Win32MessageHandler> getHandler( HWND window );
21
22 bool isValid() const;
23
24 boost::signals2::signal<bool ( HWND window, UINT message, WPARAM wParam, LPARAM lParam ), StopOnTrueCombiner> onMessage;
25
26 static LRESULT WINAPI WindowSubclassProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
27
28private:
29 HWND window_;
30 LONG_PTR parentProc_;
31};
32
33}
34
35#endif
only for bindings generation
Definition MRCameraOrientationPlugin.h:8