Helper class for managing native window resources. More...
#include <SNativeWnd.h>
Public Member Functions | |
HANDLE | GetHeap () |
Retrieves the handle to the heap. | |
void | LockSharePtr (void *p) |
Locks a shared pointer. | |
void | UnlockSharePtr () |
Unlocks a shared pointer. | |
void * | GetSharePtr () |
Retrieves the shared pointer. | |
HINSTANCE | GetAppInstance () |
Retrieves the application instance handle. | |
ATOM | GetSimpleWndAtom () |
Retrieves the atom for the simple window class. | |
BOOL | Init (HINSTANCE hInst, LPCTSTR pszClassName, BOOL bImeApp) |
Initializes the helper with the application instance and window class name. | |
Static Public Member Functions | |
static SNativeWndHelper * | instance () |
Retrieves the singleton instance of SNativeWndHelper. | |
Helper class for managing native window resources.
This class provides methods for initializing and managing resources related to native windows, such as heap management, shared pointers, and window class registration.
Definition at line 30 of file SNativeWnd.h.
|
inline |
Retrieves the application instance handle.
Definition at line 69 of file SNativeWnd.h.
|
inline |
Retrieves the handle to the heap.
Definition at line 37 of file SNativeWnd.h.
|
inline |
Retrieves the shared pointer.
Definition at line 59 of file SNativeWnd.h.
|
inline |
Retrieves the atom for the simple window class.
Definition at line 79 of file SNativeWnd.h.
BOOL SNativeWndHelper::Init | ( | HINSTANCE | hInst, |
LPCTSTR | pszClassName, | ||
BOOL | bImeApp ) |
Initializes the helper with the application instance and window class name.
hInst | Handle to the application instance. |
pszClassName | Name of the window class. |
bImeApp | Flag indicating if the application uses IME. |
Definition at line 156 of file SNativeWnd.cpp.
|
inlinestatic |
Retrieves the singleton instance of SNativeWndHelper.
Definition at line 100 of file SNativeWnd.h.
void SNativeWndHelper::LockSharePtr | ( | void * | p | ) |
Locks a shared pointer.
p | Pointer to the shared object. |
Definition at line 175 of file SNativeWnd.cpp.
void SNativeWndHelper::UnlockSharePtr | ( | ) |
Unlocks a shared pointer.
Definition at line 181 of file SNativeWnd.cpp.