📄 logindlg.h
字号:
#if !defined(AFX_LOGINDLG_H__DA028CCE_837F_4BAE_BE30_8FEB7E5645DD__INCLUDED_)
#define AFX_LOGINDLG_H__DA028CCE_837F_4BAE_BE30_8FEB7E5645DD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LogInDlg.h : header file
//
#include "MyStatic.h"
/////////////////////////////////////////////////////////////////////////////
// CLogInDlg dialog
//按钮状态
enum CButtonState{bsNone,bsIni,bsMin,bsMax,bsRes,bsClose};
class CLogInDlg : public CDialog
{
// Construction
public:
CLogInDlg(CWnd* pParent = NULL); // standard constructor
CDatabase m_database;
int * b_Login;
int count;
// Dialog Data
//{{AFX_DATA(CLogInDlg)
enum { IDD = IDD_LOGIN };
MyStatic m_label2;
MyStatic m_label1;
CString m_strUsername;
CString m_strPassword;
//}}AFX_DATA
BOOL m_IsMax; //是否处于最大化状态
int m_BorderWidth; //边框宽度
int m_BorderHeight; //边框高度
int m_CaptionHeight; //标题栏的高度
CString m_Caption; //窗口标题
COLORREF m_CapitonColor; //标题字体颜色
CFont m_CaptionFont; //标题字体
int m_ButtonWidth; //按钮位图宽度
int m_ButtonHeight; //按钮位图高度
BOOL m_FirstShow; //窗口首次被显示
CRect m_OrigonRect;//原始窗口区域
CRect m_IniRect,m_MinRect,m_MaxRect,m_CloseRect;//标题栏按钮的显示区域
enum CButtonState m_ButtonState; //按钮状态
BOOL m_IsDrawForm;//是否需要绘制窗体
void DrawForm();
void DrawFormCaption();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLogInDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CLogInDlg)
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcPaint();
afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg BOOL OnNcActivate(BOOL bActive);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LOGINDLG_H__DA028CCE_837F_4BAE_BE30_8FEB7E5645DD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -