forked from mhammond/pywin32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pythonframe.h
27 lines (21 loc) · 823 Bytes
/
pythonframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// pythonframe.h : header file
//
#ifndef __PYTHONFRAME_H__
#define __PYTHONFRAME_H__
// With the new template mechanism, the Python frame classes
// become (nearly) 1 liners :-)
class CPythonFrameWnd : public CPythonWndFramework<CFrameWnd> {
DECLARE_DYNAMIC(CPythonFrameWnd);
public:
// m_pFloatingFrameClass is protected so we can't access
// it from the outside
void SetFloatingFrameClass(CRuntimeClass *frameClass) { m_pFloatingFrameClass = frameClass; }
};
class CPythonMDIChildWnd : public CPythonFrameFramework<CMDIChildWnd> {
DECLARE_DYNAMIC(CPythonMDIChildWnd);
};
class CPythonMDIFrameWnd : public CPythonFrameFramework<CMDIFrameWnd> {
DECLARE_DYNAMIC(CPythonMDIFrameWnd);
};
/////////////////////////////////////////////////////////////////////////////
#endif // __filename_h__