StartupDlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:2k
- #pragma once
- /////////////////////////////////////////////////////////////////////////////
- // CStartupDlg dialog
- #define WM_USER_STARTUP_PROGRESS (WM_USER+1001)
- class STKNET_API CStartupDlg : public CDialog
- {
- // Construction
- public:
- CStartupDlg(CWnd* pParent = NULL);
- protected:
- CString m_strAddress;
- UINT m_nPort;
- CBitmap m_bitmap;
- BOOL (CALLBACK *m_pfnLoadProgram)(HWND hwnd, int nMinProgress, int nMaxProgress);
- BOOL m_bDisableOffline;
- // enum { IDD = IDD_STARTUP };
- CEdit m_editUser;
- CEdit m_editPasswd;
- CButton m_btnCheckSavePasswd;
- CButton m_btnModify;
- CButton m_btnDelete;
- CButton m_btnAdd;
- CButton m_btnCancel;
- CButton m_btnProxy;
- CStatic m_staticInfo;
- CProgressCtrl m_ctrlProgress;
- CStatic m_staticPicture;
- CButton m_btnOffline;
- CButton m_btnOK;
- CComboBox m_comboServer;
- CString m_strUser;
- CString m_strPasswd;
- BOOL m_bSavePasswd;
- public:
- BOOL SetBitmap(HBITMAP hbmp);
- void SetLoadProgramFunc(BOOL (CALLBACK *pfnLoadProgram)(HWND hWnd,int nMinProgress,int nMaxProgress));
- void SetDisableOffline(BOOL bDisableOffline);
- void SetProgress(int nPos);
- void SetupComboServer();
- UINT GetPort() { return m_nPort; }
- CString GetServer() { return m_strAddress; }
- CString GetUser() { return m_strUser; }
- CString GetPasswd() { return m_strPasswd; }
- // Overrides
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL OnInitDialog();
- public:
- virtual int DoModal();
- virtual void OnOK();
- // Implementation
- protected:
- afx_msg void OnSelchangeComboServer();
- afx_msg void OnAdd();
- afx_msg void OnModify();
- afx_msg void OnDelete();
- afx_msg void OnProxySet();
- afx_msg void OnOffline();
- afx_msg LRESULT OnStartupProgress(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };