Click here to Skip to main content
15,895,799 members
Articles / Programming Languages / C++

3G Modem Internet Dialer

Rate me:
Please Sign up or sign in to vote.
4.90/5 (88 votes)
13 Jul 2011CPOL7 min read 777.2K   65.9K   192  
3G Modem Internet Dialer
#pragma once


// CTrayIcon

class CTrayIcon : public CWnd
{
	DECLARE_DYNAMIC(CTrayIcon)

public:
	CTrayIcon();
	virtual ~CTrayIcon();
	BOOL Create(CWnd* pParent);

	void SetSignalStrength(int iSignalStrength);
	void SetNetworkMode(int iNetworkMode);
	void UpdateTrayIcon(void);
	void ShowMenu(void);

protected:
	DECLARE_MESSAGE_MAP()

private:

	NOTIFYICONDATA m_notifyicondata;
	CWnd* m_pParentWnd;
	int m_iNetworkMode;
	int m_iSignalStrength;

	CMenu m_TaryMenu;

	HICON m_hIconNA;

	HICON m_hIconEDEG1;
	HICON m_hIconEDEG2;
	HICON m_hIconEDEG3;
	HICON m_hIconEDEG4;
	HICON m_hIconEDEG5;

	HICON m_hIconWCDMA1;
	HICON m_hIconWCDMA2;
	HICON m_hIconWCDMA3;
	HICON m_hIconWCDMA4;
	HICON m_hIconWCDMA5;

	HICON m_hIconHSDPA1;
	HICON m_hIconHSDPA2;
	HICON m_hIconHSDPA3;
	HICON m_hIconHSDPA4;
	HICON m_hIconHSDPA5;

};


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
United States United States
I love coding with C++. I always split my free time between coding and gaming Smile | :)

Comments and Discussions