⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientdlg.h

📁 初学VC,编写的一个机房管理系统,功能基本上完善,但代码可读性不强.
💻 H
字号:
// clientDlg.h : header file
//

#if !defined(AFX_CLIENTDLG_H__552CC0BC_466F_42AF_854E_56A079E5C7A9__INCLUDED_)
#define AFX_CLIENTDLG_H__552CC0BC_466F_42AF_854E_56A079E5C7A9__INCLUDED_
#include "winsock.h"
#include "time.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "trayicon.h"
/////////////////////////////////////////////////////////////////////////////
// CClientDlg dialog

class CClientDlg : public CDialog
{
// Construction
public:

	int tagofsj;
	CTime currenttime;
	void OnCancel();
	void Initi();
	SOCKADDR_IN addrSrv;
	CClientDlg(CWnd* pParent = NULL);	// standard constructor
	SOCKET sockClient;
	SOCKET sockSrv;
	int m_Width;
	int m_Height;
	CRect rectsj;
	CRect rectcl;
	CRect rectte;


// Dialog Data
	//{{AFX_DATA(CClientDlg)
	enum { IDD = IDD_CLIENT_DIALOG };
	CStatic	m_te;
	CStatic	m_cl;
	CStatic	m_sj;
	CString	password;
	CString	xuehao;

	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CTrayIcon	m_trayIcon;	
	BOOL	m_bShowTrayNotifications;
	// Generated message map functions
	//{{AFX_MSG(CClientDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSj();
	afx_msg void OnTeacher();
	afx_msg void OnClass();
	afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnExit();
	afx_msg void OnChangePwd();
	afx_msg void OnView();
	afx_msg void OnAbout();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
		afx_msg void OnCloseWindow();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLIENTDLG_H__552CC0BC_466F_42AF_854E_56A079E5C7A9__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -