Added dialog for canceling file transfer.
Added new class FTDialog::CancelingDlg.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@444 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/FTDialog.h b/vncviewer/FTDialog.h
index eff0815..0c83343 100644
--- a/vncviewer/FTDialog.h
+++ b/vncviewer/FTDialog.h
@@ -46,6 +46,10 @@
bool createFTDialog(HWND hwndParent);
bool closeFTDialog();
void destroyFTDialog();
+
+ void processDlgMsgs();
+
+ void cancelTransfer(bool bResult);
static BOOL CALLBACK FTDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
@@ -149,6 +153,28 @@
} FTBUTTONSSTATE;
FTBUTTONSSTATE m_BtnState;
+
+ public:
+ class CancelingDlg
+ {
+ public:
+ CancelingDlg(FTDialog *pFTDlg);
+ ~CancelingDlg();
+
+ static BOOL CALLBACK cancelingDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+ bool create();
+ bool destroy();
+
+ private:
+ FTDialog *m_pFTDlg;
+ HWND m_hwndDlg;
+
+ bool close(bool bResult);
+ };
+
+ private:
+ CancelingDlg *m_pCancelingDlg;
};
}
}