mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CDXUTStatic::GetTextCopy(...)
This commit is contained in:
parent
747d865c87
commit
a430621286
@ -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 )
|
||||
{
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user