Click here to Skip to main content
15,897,090 members
Articles / Programming Languages / C++

Tray Me!

Rate me:
Please Sign up or sign in to vote.
4.98/5 (21 votes)
1 Aug 2008CPOL9 min read 93.8K   3.7K   138  
A Beginner's Guide to Windows Hooks
// Tray Me !Dlg.h : header file
//

#pragma once


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

// Dialog Data
	enum { IDD = IDD_TRAYME_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	afx_msg void OnClose();
	afx_msg void OnDestroy();


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	DECLARE_MESSAGE_MAP()

	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();

	LRESULT OnTrayNotify(WPARAM wParam,LPARAM lParam);
	LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
	bool RegisterApplicationHotKeys(void);
	bool UnRegisterApplicationHotKeys(void);
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
Hello All !
This is Mallinath S. Karkanti, from India. I'm working as a Software Developer in one of the Middle Scale Company... !

Comments and Discussions