soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SNativeWndHelper Class Reference

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 SNativeWndHelperinstance ()
 Retrieves the singleton instance of SNativeWndHelper.
 

Detailed Description

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.

Member Function Documentation

◆ GetAppInstance()

HINSTANCE SNativeWndHelper::GetAppInstance ( )
inline

Retrieves the application instance handle.

Returns
HINSTANCE Handle to the application instance.

Definition at line 69 of file SNativeWnd.h.

◆ GetHeap()

HANDLE SNativeWndHelper::GetHeap ( )
inline

Retrieves the handle to the heap.

Returns
HANDLE Handle to the heap.

Definition at line 37 of file SNativeWnd.h.

◆ GetSharePtr()

void * SNativeWndHelper::GetSharePtr ( )
inline

Retrieves the shared pointer.

Returns
void* Pointer to the shared object.

Definition at line 59 of file SNativeWnd.h.

◆ GetSimpleWndAtom()

ATOM SNativeWndHelper::GetSimpleWndAtom ( )
inline

Retrieves the atom for the simple window class.

Returns
ATOM Atom for the simple window class.

Definition at line 79 of file SNativeWnd.h.

◆ Init()

BOOL SNativeWndHelper::Init ( HINSTANCE hInst,
LPCTSTR pszClassName,
BOOL bImeApp )

Initializes the helper with the application instance and window class name.

Parameters
hInstHandle to the application instance.
pszClassNameName of the window class.
bImeAppFlag indicating if the application uses IME.
Returns
BOOL TRUE if initialization is successful, FALSE otherwise.

Definition at line 156 of file SNativeWnd.cpp.

◆ instance()

static SNativeWndHelper * SNativeWndHelper::instance ( )
inlinestatic

Retrieves the singleton instance of SNativeWndHelper.

Returns
SNativeWndHelper* Pointer to the singleton instance.

Definition at line 100 of file SNativeWnd.h.

◆ LockSharePtr()

void SNativeWndHelper::LockSharePtr ( void * p)

Locks a shared pointer.

Parameters
pPointer to the shared object.

Definition at line 175 of file SNativeWnd.cpp.

◆ UnlockSharePtr()

void SNativeWndHelper::UnlockSharePtr ( )

Unlocks a shared pointer.

Definition at line 181 of file SNativeWnd.cpp.


The documentation for this class was generated from the following files: