You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.0 KiB
44 lines
1.0 KiB
//
|
|
// discodlg.h: Disconnected dlg
|
|
//
|
|
|
|
#ifndef _disconnecteddlg_h_
|
|
#define _disconnecteddlg_h_
|
|
|
|
#include "dlgbase.h"
|
|
|
|
class CContainerWnd;
|
|
|
|
class CDisconnectedDlg
|
|
{
|
|
public:
|
|
CDisconnectedDlg(HWND hwndOwner, HINSTANCE hInst, CContainerWnd* pContWnd);
|
|
~CDisconnectedDlg();
|
|
|
|
virtual DCINT DoModal();
|
|
|
|
VOID SetDisconnectReason(UINT id) {_disconnectReason=id;}
|
|
VOID SetExtendedDiscReason(ExtendedDisconnectReasonCode extDiscReason)
|
|
{_extendedDiscReason = extDiscReason;}
|
|
|
|
private:
|
|
static BOOL
|
|
MapErrorToString(
|
|
HINSTANCE hInstance,
|
|
INT disconnectReason,
|
|
ExtendedDisconnectReasonCode extendedDisconnectReason,
|
|
LPTSTR szErrorMsg,
|
|
INT cchErrorLen
|
|
);
|
|
|
|
private:
|
|
UINT _disconnectReason;
|
|
ExtendedDisconnectReasonCode _extendedDiscReason;
|
|
CContainerWnd* _pContWnd;
|
|
HINSTANCE _hInstance;
|
|
HWND _hwndOwner;
|
|
};
|
|
|
|
|
|
#endif //_disconnecteddlg_h_
|
|
|