[saco] Implement CDXUTStatic::GetTextCopy(...)

This commit is contained in:
RD42 2024-05-16 22:23:43 +08:00
parent 747d865c87
commit a430621286
2 changed files with 34 additions and 0 deletions

View File

@ -118,6 +118,25 @@ CDXUTControl::CDXUTControl( CDXUTDialog *pDialog )
}
//--------------------------------------------------------------------------------------
// CDXUTStatic class
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------
HRESULT CDXUTStatic::GetTextCopy( PCHAR strDest, UINT bufferCount )
{
// Validate incoming parameters
if( strDest == NULL || bufferCount == 0 )
{
return E_INVALIDARG;
}
// Copy the window text
StringCchCopy( strDest, bufferCount, m_strText );
return S_OK;
}
//--------------------------------------------------------------------------------------
void DXUTBlendColor::Init( D3DCOLOR defaultColor, D3DCOLOR disabledColor, D3DCOLOR hiddenColor )
{

View File

@ -146,4 +146,19 @@ protected:
};
//-----------------------------------------------------------------------------
// Static control
//-----------------------------------------------------------------------------
class CDXUTStatic : public CDXUTControl
{
public:
HRESULT GetTextCopy( PCHAR strDest, UINT bufferCount );
protected:
TCHAR m_strText[MAX_PATH]; // Window text
};
#endif // DXUT_GUI_H