mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CDXUTDialog::RemoveAllControls()
This commit is contained in:
parent
7ad9b52673
commit
b3ff5fd8aa
@ -86,6 +86,26 @@ void CDXUTDialog::SetCallback( PCALLBACKDXUTGUIEVENT pCallback, void* pUserConte
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void CDXUTDialog::RemoveAllControls()
|
||||
{
|
||||
if( s_pControlFocus && s_pControlFocus->m_pDialog == this )
|
||||
s_pControlFocus = NULL;
|
||||
if( s_pControlPressed && s_pControlPressed->m_pDialog == this )
|
||||
s_pControlPressed = NULL;
|
||||
m_pControlMouseOver = NULL;
|
||||
|
||||
for( int i=0; i < m_Controls.GetSize(); i++ )
|
||||
{
|
||||
CDXUTControl* pControl = m_Controls.GetAt( i );
|
||||
SAFE_DELETE( pControl );
|
||||
}
|
||||
|
||||
m_Controls.RemoveAll();
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
CDXUTDialogResourceManager::CDXUTDialogResourceManager()
|
||||
{
|
||||
m_pd3dDevice = NULL;
|
||||
|
@ -91,6 +91,7 @@ public:
|
||||
CDXUTDialog();
|
||||
~CDXUTDialog();
|
||||
|
||||
void RemoveAllControls();
|
||||
|
||||
// Sets the callback used to notify the app of control events
|
||||
void SetCallback( PCALLBACKDXUTGUIEVENT pCallback, void* pUserContext = NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user