#include <NativeWindow.h>
Definition at line 26 of file NativeWindow.h.
◆ NativeWindow()
NativeWindow::NativeWindow |
( |
| ) |
|
|
inline |
◆ ~NativeWindow()
virtual NativeWindow::~NativeWindow |
( |
| ) |
|
|
inlinevirtual |
◆ Create()
bool NativeWindow::Create |
( |
wxWindow * |
parent, |
|
|
WXWidget |
hwnd |
|
) |
| |
|
inline |
Definition at line 40 of file NativeWindow.h.
41 {
42 const wxRect r = wxRectFromRECT(wxGetWindowRect((HWND)hwnd));
43
44
45
46 if (!CreateBase(parent,
47 wxID_ANY,
48 r.GetPosition(),
49 r.GetSize(),
50 0,
51 wxDefaultValidator,
52 wxS("nativewindow")))
53 {
54 return false;
55 }
56
57 parent->AddChild(this);
58
59 SubclassWin(hwnd);
60
61
62 InheritAttributes();
63
64 return true;
65 }
The documentation for this class was generated from the following file: