123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- #include "EnBitmap.h"
- #include "SkinButton.h"
- #include "SubLabel.h"
- // CDLG_Login 对话框
- class CDLG_Login : public CDialogEx
- {
- DECLARE_DYNAMIC(CDLG_Login)
- public:
- CDLG_Login(CWnd* pParent = nullptr); // 标准构造函数
- virtual ~CDLG_Login();
- // 对话框数据
- #ifdef AFX_DESIGN_TIME
- enum { IDD = IDD_DLG_LOGIN };
- #endif
- public:
- INT m_nLogInStatus;
- CString m_strAccount;
- CString m_strPassword;
- CEnBitmap m_DLGBackground;
- // 不规则背景要去掉的颜色;
- HRGN m_hrgn;
- CLabel m_stStudioID;
- CLabel m_stAccount;
- CLabel m_stPassWord;
- CSkinButton m_btnLogin;
- CSkinButton m_btnCancel;
- void ChangeWindowRgn();
- void InitAllCtrl();
- void AdjustControl();
- void ReDrawCrl(CDC* pMemDC);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- afx_msg void OnPaint();
- };
|