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

📄 hideitdlg.h

📁 一个可以管理当前窗口显示和隐藏的完整程序
💻 H
字号:
////////////////////////////////////////////////////////////////////////////
// File:	HideItDlg.h
// Version:	1.0
// Created:	19-Feb-2003
//
// Author:	Paul S. Vickery
// E-mail:	paul@vickeryhome.freeserve.co.uk
//
// Utility to show or hide top-level windows.
//
// You are free to use or modify this code, with no restrictions, other than
// you continue to acknowledge me as the original author in this source code,
// or any code derived from it.
//
// If you use this code, or use it as a base for your own code, it would be 
// nice to hear from you simply so I know it's not been a waste of time!
//
// Copyright (c) 1997-2003 Paul S. Vickery
//
////////////////////////////////////////////////////////////////////////////
// Version History:
//
// Version 1.0
// ===========
// Initial version. Based on OnTop 3.0.2.
// 
////////////////////////////////////////////////////////////////////////////
// PLEASE LEAVE THIS HEADER INTACT
////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HIDEITDLG_H__DDE4FAE6_3AAE_11D6_9528_814C36560D2A__INCLUDED_)
#define AFX_HIDEITDLG_H__DDE4FAE6_3AAE_11D6_9528_814C36560D2A__INCLUDED_

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

#include "DoubleListPicker.h"

/////////////////////////////////////////////////////////////////////////////
// CHideItDlg dialog

class CHideItDlg : public CDialog
{
// Construction
public:
	CHideItDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CHideItDlg)
	enum { IDD = IDD_HIDEIT_DIALOG };
	CDoubleListPicker	m_picker;
	//}}AFX_DATA

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

public:
	static BOOL CALLBACK ListWindows(HWND hwnd, LPARAM lparam);

// Implementation
protected:
	void GetExclusionList();
	HICON m_hIcon;
	BOOL m_bTraySuccess;
	CMenu* m_pMenu;
	int m_nIDMax;
	CMenu* m_pMenuHidden;

	CStringList m_listExclude;
	BOOL m_bAddToPicker;

	// Generated message map functions
	//{{AFX_MSG(CHideItDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnDestroy();
	afx_msg LONG OnTrayIconEvent(UINT wParam, LONG lParam);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnClose();
	virtual void OnCancel();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	// functions for Tray icons
	BOOL GetWindowList();
	BOOL AddTrayIcon(UINT uID, HICON hicon, LPSTR lpszTip);
	BOOL DeleteTrayIcon(UINT uID);

};

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

#endif // !defined(AFX_HIDEITDLG_H__DDE4FAE6_3AAE_11D6_9528_814C36560D2A__INCLUDED_)

⌨️ 快捷键说明

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