|
#include "stdafx.h"
#include "myapptrayicon.h"
#include "Resource.h"
CMyAppTrayIcon::CMyAppTrayIcon(void)
{
}
CMyAppTrayIcon::~CMyAppTrayIcon(void)
{
}
void CMyAppTrayIcon::OnRButtonDown(UINT nIconID, CPoint ptMouse)
{
CMenu t_Menu;
t_Menu.LoadMenu(IDR_MAINFRAME);
OnContextMenu(t_Menu.GetSubMenu(0), ptMouse, ::AfxGetMainWnd());
}
void CMyAppTrayIcon::OnLButtonDblClk(UINT nIconID, CPoint ptMouse)
{
CString str;
str.Format("Icon %d double clicked with left button", nIconID);
::AfxMessageBox(str);
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.