2019-04-19 17:19:57 +08:00
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "async_do_modal.h"
|
|
|
|
|
#include "async_modal_runner.h"
|
|
|
|
|
|
2019-09-22 11:08:20 +08:00
|
|
|
|
namespace nim_comp {
|
|
|
|
|
|
2019-04-19 17:19:57 +08:00
|
|
|
|
bool AsyncDoModal(ModalWndBase *dlg)
|
|
|
|
|
{
|
|
|
|
|
return AsyncModalRunnerManager::GetInstance()->DoModal(dlg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CancelAllAsyncModalDialogs()
|
|
|
|
|
{
|
|
|
|
|
AsyncModalRunnerManager::GetInstance()->CancelAllThreads();
|
2019-09-22 11:08:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|