CDLG_Login.h 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "EnBitmap.h"
  3. #include "SkinButton.h"
  4. #include "SubLabel.h"
  5. // CDLG_Login 对话框
  6. class CDLG_Login : public CDialogEx
  7. {
  8. DECLARE_DYNAMIC(CDLG_Login)
  9. public:
  10. CDLG_Login(CWnd* pParent = nullptr); // 标准构造函数
  11. virtual ~CDLG_Login();
  12. // 对话框数据
  13. #ifdef AFX_DESIGN_TIME
  14. enum { IDD = IDD_DLG_LOGIN };
  15. #endif
  16. public:
  17. INT m_nLogInStatus;
  18. CString m_strAccount;
  19. CString m_strPassword;
  20. CEnBitmap m_DLGBackground;
  21. // 不规则背景要去掉的颜色;
  22. HRGN m_hrgn;
  23. CLabel m_stAccount;
  24. CLabel m_stPassWord;
  25. CSkinButton m_btnLogin;
  26. CSkinButton m_btnCancel;
  27. void ChangeWindowRgn();
  28. void InitAllCtrl();
  29. void AdjustControl();
  30. void ReDrawCrl(CDC* pMemDC);
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  33. DECLARE_MESSAGE_MAP()
  34. public:
  35. virtual BOOL OnInitDialog();
  36. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  37. virtual BOOL PreTranslateMessage(MSG* pMsg);
  38. afx_msg void OnPaint();
  39. };