📄 maindlg.h
字号:
#if !defined(AFX_MAINDLG_H__C5B34862_69C6_4F83_A777_220E1F71525D__INCLUDED_)
#define AFX_MAINDLG_H__C5B34862_69C6_4F83_A777_220E1F71525D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MainDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMainDlg dialog
#define WM_FILEEVENT WM_USER + 8
#define NEAR_SIZE 10 //定义自动停靠有效距离
#define NEAR_SIDE 5 //窗体隐藏后在屏幕上保留的像素,以使鼠标可以触及
#define MOVES 10 //动画滚动窗体的步数,如果你觉得不够平滑,可以增大该值.
#define MAX_MENBER 255
enum
{
ALIGN_NONE, //不停靠
ALIGN_TOP, //停靠上边
ALIGN_LEFT, //停靠左边
ALIGN_RIGHT //停靠右边
};
#include "NetQQDlg.h"
#include "FileTransfer.h"
class CMainDlg : public CDialog
{
// Construction
public:
void PersonalPlace();
HWND m_hFileShareWnd;
HWND m_hModifyIfWnd;
HWND m_hUserInfoWnd;
HWND m_hConfirmWnd;
HWND m_hPsPlaceWnd;
int GetIndexInList(CString);
void NearSide(HWND hWnd);
void HideSide(HWND hWnd, BOOL hide);
CWnd* CreateChatWindow(CString strUserId);
CNetQQDlg* m_pLoadDlg;
CMainDlg(CWnd* pParent = NULL); // standard constructor
tagClientInfo* GetUserNode(CString strUserId);
tagClientInfo* GetMyNode();
// Dialog Data
//{{AFX_DATA(CMainDlg)
enum { IDD = IDD_MAINDLG };
CListCtrl m_lstUserList;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CMainDlg)
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnClose();
virtual BOOL OnInitDialog();
afx_msg void OnBtnFileshare();
afx_msg void OnDblclkLstUser(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickLstUser(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBtnMineinfo();
afx_msg void OnBtnChangeuser();
afx_msg void OnBtnSendcall();
afx_msg void OnBtnPersonalplace();
afx_msg void OnBtnFiletronfer();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnButExitmain();
//}}AFX_MSG
afx_msg void OnMidMsg(WPARAM wParam, LPARAM lParam);
afx_msg void OnFileEvent(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
void DelUser(char* sLeaveUserId);
void AddUser(tagClientInfo* LoadUserIf);
CImageList m_imgFaceList;
tagClientInfo* m_pMyInfoNode;
int m_alignType;
int m_ScreenY;
int m_ScreenX;
CBitmapButton m_myButtonMyinfo;
CBitmapButton m_myButtonRoom;
CBitmapButton m_myButtonShare;
CBitmapButton m_myButtonFileSend;
CBitmapButton m_myButtonCall;
CBitmapButton m_myButtonChange;
CBitmapButton m_myButtonClose;
CToolTip m_ttToolTip;
CString m_strListRowValue[MAX_MENBER];
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINDLG_H__C5B34862_69C6_4F83_A777_220E1F71525D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -