Initial
This commit is contained in:
57
test/ABORTDLG.HPP
Normal file
57
test/ABORTDLG.HPP
Normal file
@@ -0,0 +1,57 @@
|
||||
#ifndef _TEST_ABORTDLG_HPP_
|
||||
#define _TEST_ABORTDLG_HPP_
|
||||
#ifndef _COMMON_WINDOWS_HPP_
|
||||
#include <common/windows.hpp>
|
||||
#endif
|
||||
#ifndef _DIALOG_DYNAMICDIALOG_HPP_
|
||||
#include <dialog/dyndlg.hpp>
|
||||
#endif
|
||||
|
||||
class AbortDlg : private DynamicDialog
|
||||
{
|
||||
public:
|
||||
AbortDlg(void);
|
||||
virtual ~AbortDlg();
|
||||
void perform(GUIWindow &parentWindow);
|
||||
BOOL isDestroyed(void)const;
|
||||
BOOL isCancelled(void)const;
|
||||
void destroy(void);
|
||||
void yieldTask(void);
|
||||
protected:
|
||||
virtual void init(void);
|
||||
private:
|
||||
AbortDlg(const AbortDlg &AbortDlg);
|
||||
AbortDlg &operator=(const AbortDlg &AbortDlg);
|
||||
void create(GUIWindow &parentWindow);
|
||||
WORD dlgCommand(DWORD commandID,CallbackData &someCallbackData);
|
||||
BOOL dlgInitDialog(CallbackData &someCallbackData);
|
||||
void dlgDestroyDialog(CallbackData &someCallbackData);
|
||||
|
||||
BOOL mIsDestroyed;
|
||||
BOOL mIsCancelled;
|
||||
};
|
||||
|
||||
inline
|
||||
BOOL AbortDlg::isDestroyed(void)const
|
||||
{
|
||||
return mIsDestroyed;
|
||||
}
|
||||
|
||||
inline
|
||||
BOOL AbortDlg::isCancelled(void)const
|
||||
{
|
||||
return mIsCancelled;
|
||||
}
|
||||
|
||||
inline
|
||||
void AbortDlg::destroy(void)
|
||||
{
|
||||
GUIWindow::destroy();
|
||||
}
|
||||
|
||||
inline
|
||||
void AbortDlg::yieldTask(void)
|
||||
{
|
||||
GUIWindow::yieldTask();
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user