Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cOleWindowProxy.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cOleWindowProxy_H
6 #define _INC_cOleWindowProxy_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 #include "cOleControl.h"
11 #include "cOleClientSite.h"
12 #include "../Windows/cWindow.h"
14 
15 #if defined(_WIN32) && defined(_MSC_VER)
16 
17 namespace GrayLib
18 {
19  class cOleWindowProxy
20  : public cOleWindowBase
21  , public cWindow
22  {
27 
28  typedef cOleWindowBase SUPER_t;
29 
30  public:
31  static const GChar_t* const k_pszWindowClass;
32  static ATOM sm_aClass;
33  public:
34  int m_nInSendMessage; // SendMessage
35 
36  public:
37  cOleWindowProxy(cOleControl* pParentControl, HWND hWnd = WINHANDLE_NULL);
38  virtual ~cOleWindowProxy(void);
39 
40  static HRESULT GRAYCALL RegisterClassX();
41 
42  virtual HRESULT InitInstance() override;
43  virtual bool CheckRectDirty() override;
44  virtual HRESULT DrawControl(HDC hDC, DWORD dwDrawAspect) override;
45  virtual LRESULT OnWindowMessage1(MSG& sMsg) override;
46  };
47 };
48 #endif
49 #endif
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define WINHANDLE_NULL
HWND, HPEN, etc are NOT OS Handles. like HWND_DESKTOP. like HANDLEPTR_NULL. This is a WINAPI void* ha...
Definition: cOSHandle.h:23
Definition: cMesh.h:22
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26