CDLG_Login.h 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_stStudioID;
  24. CLabel m_stAccount;
  25. CLabel m_stPassWord;
  26. CSkinButton m_btnLogin;
  27. CSkinButton m_btnCancel;
  28. void ChangeWindowRgn();
  29. void InitAllCtrl();
  30. void AdjustControl();
  31. void ReDrawCrl(CDC* pMemDC);
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  34. DECLARE_MESSAGE_MAP()
  35. public:
  36. virtual BOOL OnInitDialog();
  37. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  38. virtual BOOL PreTranslateMessage(MSG* pMsg);
  39. afx_msg void OnPaint();
  40. };