mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement CDXUTDialog::Refresh()
This commit is contained in:
parent
b3ff5fd8aa
commit
8fc6a8e473
@ -179,7 +179,28 @@ void CDXUTDialogResourceManager::OnDestroyDevice()
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
void CDXUTDialog::Refresh()
|
||||
{
|
||||
if( s_pControlFocus )
|
||||
s_pControlFocus->OnFocusOut();
|
||||
|
||||
if( m_pControlMouseOver )
|
||||
m_pControlMouseOver->OnMouseLeave();
|
||||
|
||||
s_pControlFocus = NULL;
|
||||
s_pControlPressed = NULL;
|
||||
m_pControlMouseOver = NULL;
|
||||
|
||||
for( int i=0; i < m_Controls.GetSize(); i++ )
|
||||
{
|
||||
CDXUTControl* pControl = m_Controls.GetAt(i);
|
||||
pControl->Refresh();
|
||||
}
|
||||
|
||||
if( m_bKeyboardInput )
|
||||
FocusDefaultControl();
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
@ -96,6 +96,9 @@ public:
|
||||
// Sets the callback used to notify the app of control events
|
||||
void SetCallback( PCALLBACKDXUTGUIEVENT pCallback, void* pUserContext = NULL );
|
||||
|
||||
// Device state notification
|
||||
void Refresh();
|
||||
|
||||
|
||||
bool m_bNonUserEvents;
|
||||
bool m_bKeyboardInput;
|
||||
|
Loading…
Reference in New Issue
Block a user