![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cWndHandle.h>
Public Member Functions | |
cWndHandle (HWND hWnd=WINHANDLE_NULL) noexcept | |
cWndHandle (cWndHandle *pWnd) noexcept | |
virtual | ~cWndHandle () |
bool | isValidHwnd () const noexcept |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
operator HWND () const noexcept | |
HWND | get_Hwnd () const noexcept |
HWND | GetSafeHwnd () const noexcept |
bool | AttachHwnd (HWND hWnd) |
void | DetachHwnd () |
![]() | |
virtual | ~CObject () |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
Protected Attributes | |
HWND | m_hWnd |
Handle to window (i may or may not have to destroy this) More... | |
A basic window HWND wrapper. Very much like MFC CWnd Assumes nothing about ownership of the window. DOES NOT destroy this window automatically. since parents destroy children automatically anyhow. Similar to Gtk::Window() or MFC/ATL cWindow or CWnd
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinevirtual |
|
inline |
Ignore current value of m_hWnd. just overwrite it.
|
inline |
Do not destroy window on class destructor.
|
inlinenoexcept |
|
inlinenoexcept |
Same as get_Hwnd() but checks 'this' pointer for nullptr and validness.
|
inlinevirtualnoexcept |
< memory allocation and structure definitions are valid.
is memory allocation and structure definitions valid?
NOT in MFC so use COBJECT_IsValidCheck to call.
Reimplemented from Gray::CObject.
|
inlinenoexcept |
is m_hWnd = WINHANDLE_NULL.
|
inlinenoexcept |
|
protected |
Handle to window (i may or may not have to destroy this)