StartupDlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:2k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #pragma once
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CStartupDlg dialog
  4. #define WM_USER_STARTUP_PROGRESS (WM_USER+1001)
  5. class STKNET_API CStartupDlg : public CDialog
  6. {
  7. // Construction
  8. public:
  9. CStartupDlg(CWnd* pParent = NULL);
  10. protected:
  11. CString m_strAddress;
  12. UINT m_nPort;
  13. CBitmap m_bitmap;
  14. BOOL (CALLBACK *m_pfnLoadProgram)(HWND hwnd, int nMinProgress, int nMaxProgress);
  15. BOOL m_bDisableOffline;
  16. // enum { IDD = IDD_STARTUP };
  17. CEdit m_editUser;
  18. CEdit m_editPasswd;
  19. CButton m_btnCheckSavePasswd;
  20. CButton m_btnModify;
  21. CButton m_btnDelete;
  22. CButton m_btnAdd;
  23. CButton m_btnCancel;
  24. CButton m_btnProxy;
  25. CStatic m_staticInfo;
  26. CProgressCtrl m_ctrlProgress;
  27. CStatic m_staticPicture;
  28. CButton m_btnOffline;
  29. CButton m_btnOK;
  30. CComboBox m_comboServer;
  31. CString m_strUser;
  32. CString m_strPasswd;
  33. BOOL m_bSavePasswd;
  34. public:
  35. BOOL SetBitmap(HBITMAP hbmp);
  36. void SetLoadProgramFunc(BOOL (CALLBACK *pfnLoadProgram)(HWND hWnd,int nMinProgress,int nMaxProgress));
  37. void SetDisableOffline(BOOL bDisableOffline);
  38. void SetProgress(int nPos);
  39. void SetupComboServer();
  40. UINT GetPort() { return m_nPort; }
  41. CString GetServer() { return m_strAddress; }
  42. CString GetUser() { return m_strUser; }
  43. CString GetPasswd() { return m_strPasswd; }
  44. // Overrides
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47. virtual BOOL OnInitDialog();
  48. public:
  49. virtual int DoModal();
  50. virtual void OnOK();
  51. // Implementation
  52. protected:
  53. afx_msg void OnSelchangeComboServer();
  54. afx_msg void OnAdd();
  55. afx_msg void OnModify();
  56. afx_msg void OnDelete();
  57. afx_msg void OnProxySet();
  58. afx_msg void OnOffline();
  59. afx_msg LRESULT OnStartupProgress(WPARAM wParam, LPARAM lParam);
  60. DECLARE_MESSAGE_MAP()
  61. };