mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CDXUTDialog::AddControl(...)
This commit is contained in:
parent
0c26d699c2
commit
66cb7f0290
@ -312,6 +312,26 @@ HRESULT CDXUTDialog::InitControl( CDXUTControl* pControl )
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
HRESULT CDXUTDialog::AddControl( CDXUTControl* pControl )
|
||||
{
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
hr = InitControl( pControl );
|
||||
if( FAILED(hr) )
|
||||
return DXTRACE_ERR( "CDXUTDialog::InitControl", hr );
|
||||
|
||||
// Add to the list
|
||||
hr = m_Controls.Add( pControl );
|
||||
if( FAILED(hr) )
|
||||
{
|
||||
return DXTRACE_ERR( "CGrowableArray::Add", hr );
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
// CDXUTControl class
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
@ -91,6 +91,7 @@ public:
|
||||
CDXUTDialog();
|
||||
~CDXUTDialog();
|
||||
|
||||
HRESULT AddControl( CDXUTControl* pControl );
|
||||
HRESULT InitControl( CDXUTControl* pControl );
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user