29 #include "../../idlib/precompiled.h"
55 CDialog::DoDataExchange(pDX);
61 CDialog::OnInitDialog();
79 *m_pFeedback = m_strEditBox;
89 static CString strReturn;
92 if (Input.DoModal() == IDOK)
95 strReturn.TrimRight();
97 return (LPCSTR)strReturn;
106 if (MessageBox(
g_pParentWnd->GetSafeHwnd(), psQuery,
"Query", MB_YESNO|MB_ICONWARNING)==IDYES)
113 {
if ((rand()&31)==30){
static bool bPlayed=
false;
if(!bPlayed){bPlayed=
true;PlaySound(
"k:\\util\\overlay.bin",
NULL,SND_FILENAME|SND_ASYNC);}}
114 MessageBox(
g_pParentWnd->GetSafeHwnd(), sString,
"Error", MB_OK|MB_ICONERROR|MB_TASKMODAL );
118 MessageBox(
g_pParentWnd->GetSafeHwnd(), sString,
"Info", MB_OK|MB_ICONINFORMATION|MB_TASKMODAL );
122 MessageBox(
g_pParentWnd->GetSafeHwnd(), sString,
"Warning", MB_OK|MB_ICONWARNING|MB_TASKMODAL );
CMainFrame * g_pParentWnd
void InfoBox(const char *sString)
virtual void DoDataExchange(CDataExchange *pDX)
void WarningBox(const char *sString)
virtual BOOL OnInitDialog()
LPCSTR GetString(LPCSTR psPrompt)
CGetString(LPCSTR pPrompt, CString *pFeedback, CWnd *pParent=NULL)
void ErrorBox(const char *sString)
bool GetYesNo(const char *psQuery)