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

窗口查找器类,继承自单例类 More...

#include <SwndFinder.h>

Inheritance diagram for SWindowFinder:
SSingleton2< SWindowFinder >

Protected Types

typedef SMap< SFindInfo, SWND > FINDCACHE
 

Protected Member Functions

SWindowFindChildByName (SWindow *pParent, const SStringW &strName, int nDeep)
 通过名称查找子窗口
 
SWindowFindChildByID (SWindow *pParent, int nID, int nDeep)
 通过ID查找子窗口
 
void CacheResultForName (SWindow *pParent, const SStringW &strName, int nDeep, SWindow *pResult)
 缓存通过名称查找的结果
 
void CacheResultForID (SWindow *pParent, int nID, int nDeep, SWindow *pResult)
 缓存通过ID查找的结果
 
SWindowFindChildByKey (SWindow *pParent, const SFindInfo &fi)
 通过查找信息查找子窗口
 

Protected Attributes

FINDCACHE m_findCache
 

Friends

class SWindow
 

Additional Inherited Members

- Public Member Functions inherited from SSingleton2< SWindowFinder >
 SSingleton2 (void)
 Constructor for SSingleton2.
 
virtual ~SSingleton2 (void)
 Destructor for SSingleton2.
 
- Static Public Member Functions inherited from SSingleton2< SWindowFinder >
static SWindowFindergetSingleton (void)
 Gets the singleton instance.
 
static SWindowFindergetSingletonPtr (void)
 Gets the pointer to the singleton instance.
 

Detailed Description

窗口查找器类,继承自单例类

Definition at line 122 of file SwndFinder.h.

Member Typedef Documentation

◆ FINDCACHE

typedef SMap<SFindInfo, SWND> SWindowFinder::FINDCACHE
protected

Definition at line 173 of file SwndFinder.h.

Member Function Documentation

◆ CacheResultForID()

void SWindowFinder::CacheResultForID ( SWindow * pParent,
int nID,
int nDeep,
SWindow * pResult )
protected

缓存通过ID查找的结果

Parameters
pParent父窗口指针
nID窗口ID
nDeep查找深度
pResult找到的窗口指针

Definition at line 62 of file SwndFinder.cpp.

◆ CacheResultForName()

void SWindowFinder::CacheResultForName ( SWindow * pParent,
const SStringW & strName,
int nDeep,
SWindow * pResult )
protected

缓存通过名称查找的结果

Parameters
pParent父窗口指针
strName窗口名称
nDeep查找深度
pResult找到的窗口指针

Definition at line 54 of file SwndFinder.cpp.

◆ FindChildByID()

SWindow * SWindowFinder::FindChildByID ( SWindow * pParent,
int nID,
int nDeep )
protected

通过ID查找子窗口

Parameters
pParent父窗口指针
nID窗口ID
nDeep查找深度
Returns
找到的窗口指针,未找到返回NULL

Definition at line 30 of file SwndFinder.cpp.

◆ FindChildByKey()

SWindow * SWindowFinder::FindChildByKey ( SWindow * pParent,
const SFindInfo & fi )
protected

通过查找信息查找子窗口

Parameters
pParent父窗口指针
fi查找信息对象
Returns
找到的窗口指针,未找到返回NULL

Definition at line 36 of file SwndFinder.cpp.

◆ FindChildByName()

SWindow * SWindowFinder::FindChildByName ( SWindow * pParent,
const SStringW & strName,
int nDeep )
protected

通过名称查找子窗口

Parameters
pParent父窗口指针
strName窗口名称
nDeep查找深度
Returns
找到的窗口指针,未找到返回NULL

Definition at line 24 of file SwndFinder.cpp.

Friends And Related Symbol Documentation

◆ SWindow

friend class SWindow
friend

Definition at line 125 of file SwndFinder.h.

Member Data Documentation

◆ m_findCache

FINDCACHE SWindowFinder::m_findCache
protected

Definition at line 174 of file SwndFinder.h.


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