Click here to Skip to main content
12,635,802 members (26,060 online)
Click here to Skip to main content

Stats

209.2K views
5.4K downloads
92 bookmarked
Posted

CTrayIconPosition - where is my tray icon?

, 10 Jul 2012 CPOL
Ever wanted to know position of your tray icon? Windows supplies no API for that. This class is a compact solution that works.
// TrayFinder.h : main header file for the TRAYFINDER application
//

#if !defined(AFX_TRAYFINDER_H__879D05C5_451A_11D7_B751_00304F20BD3B__INCLUDED_)
#define AFX_TRAYFINDER_H__879D05C5_451A_11D7_B751_00304F20BD3B__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CTrayFinderApp:
// See TrayFinder.cpp for the implementation of this class
//

class CTrayFinderApp : public CWinApp
{
public:
	CTrayFinderApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTrayFinderApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CTrayFinderApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_TRAYFINDER_H__879D05C5_451A_11D7_B751_00304F20BD3B__INCLUDED_)

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)

Share

About the Author

Irek Zielinski
Web Developer
United Kingdom United Kingdom
Irek works as a C++ senior software developer.
He runs also his own small shareware bussines (He is author of few quite popular applications like: Tray Helper or Time Adjuster).

Occasionaly he posts articles to Codeguru or Codeproject. Besides C++ he likes motorcycles and paragliding.
Check out his software at: http://www.ireksoftware.com

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161208.2 | Last Updated 10 Jul 2012
Article Copyright 2003 by Irek Zielinski
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid