mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 12:46:16 +00:00
901fe7c00f
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1441 8ced0084-cf51-0410-be5f-012b33b47a6e
30 lines
583 B
C++
30 lines
583 B
C++
#include <windows.h>
|
|
#include <vector>
|
|
#include "DialogManager.h"
|
|
|
|
typedef std::vector <HWND> WindowList;
|
|
WindowList dialogs;
|
|
|
|
void DialogManager::AddDlg(HWND hDialog)
|
|
{
|
|
dialogs.push_back(hDialog);
|
|
}
|
|
|
|
bool DialogManager::IsDialogMessage(LPMSG message)
|
|
{
|
|
WindowList::iterator iter;
|
|
for (iter=dialogs.begin(); iter!=dialogs.end(); iter++)
|
|
{
|
|
if (::IsDialogMessage(*iter,message))
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
void DialogManager::EnableAll(BOOL enable)
|
|
{
|
|
WindowList::iterator iter;
|
|
for (iter=dialogs.begin(); iter!=dialogs.end(); iter++)
|
|
EnableWindow(*iter,enable);
|
|
}
|