Click here to Skip to main content
15,885,366 members
Articles / Desktop Programming / MFC

Remote Control PCs

Rate me:
Please Sign up or sign in to vote.
4.60/5 (150 votes)
20 Sep 2013GPL3 882.3K   63.9K   489  
Two projects that work together to remote control PCs across a LAN.
// Remote Desktop Server and Client
// CTrayIcon Copyright 1996 Microsoft Systems Journal, by Paul DiLascia

#ifndef _TRAYICON_H
#define _TRAYICON_H

#define WM_NOTIFY_TRAY WM_APP + 10

// CTrayIcon class
class CTrayIcon : public CCmdTarget
{
protected:
	DECLARE_DYNAMIC(CTrayIcon)
	NOTIFYICONDATA m_nid;// Shell_NotifyIcon args

public:
	CTrayIcon(UINT uID);
	~CTrayIcon();

	virtual LRESULT OnNotifyTray(WPARAM uID, LPARAM lEvent);

	// Call this to receive tray notifications
	void SetNotificationWnd(CWnd * pNotifyWnd,UINT uCbMsg);

	// SetIcon functions. To remove icon, call SetIcon(0)
	BOOL SetIcon(UINT uID);

protected:
	BOOL SetIcon(HICON hicon, LPCSTR lpTip);
	BOOL SetIcon(LPCTSTR lpResName,LPCSTR lpTip);
};

#endif

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 GNU General Public License (GPLv3)


Written By
Founder
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions