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

📄 dummydesktopdlg.h

📁 课程设计中的虚拟桌面设计
💻 H
字号:
// DummyDeskTopDlg.h : header file
//
#include "mHwndList.h"

#if !defined(AFX_DUMMYDESKTOPDLG_H__ED3F5B07_5459_4B52_89E2_EC03D3C89619__INCLUDED_)
#define AFX_DUMMYDESKTOPDLG_H__ED3F5B07_5459_4B52_89E2_EC03D3C89619__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CDummyDeskTopDlg dialog
#define WM_SYSTEMTRAY WM_USER+1
class CDummyDeskTopDlg : public CDialog
{
// Construction
public:
	CDummyDeskTopDlg(CWnd* pParent = NULL);	// standard constructor
    static BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam);
	afx_msg void OnWindowPosChanging( WINDOWPOS* lpwndpos );
// Dialog Data
	//{{AFX_DATA(CDummyDeskTopDlg)
	enum { IDD = IDD_DUMMYDESKTOP_DIALOG };
	CButton	m_w4;
	CButton	m_w3;
	CButton	m_w2;
	CButton	m_w1;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDummyDeskTopDlg)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
    int pre_desk_num;
	int now_desk_num;
	int i;
	int screen_x;
	bool m_SmallSize ;
    CRect m_rectFull;
    CRect m_rectSmall;
	int m_nEdgeSnapGap;
	NOTIFYICONDATA nid;
	// Generated message map functions
	//{{AFX_MSG(CDummyDeskTopDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton4();
	afx_msg void OnButton2();
	afx_msg void OnButton1();
	afx_msg void OnButton3();
	afx_msg void OnClose();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	//}}AFX_MSG
	afx_msg LRESULT OnSystemTray( WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DUMMYDESKTOPDLG_H__ED3F5B07_5459_4B52_89E2_EC03D3C89619__INCLUDED_)

⌨️ 快捷键说明

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