Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRemoving signature from a dll Pin
wrykyn5-Nov-04 6:03
wrykyn5-Nov-04 6:03 
GeneralOwner Drawn Button Pin
Timothy Grabrian5-Nov-04 5:47
professionalTimothy Grabrian5-Nov-04 5:47 
GeneralRe: Owner Drawn Button Pin
Antony M Kancidrowski5-Nov-04 6:12
Antony M Kancidrowski5-Nov-04 6:12 
GeneralRe: Owner Drawn Button Pin
Timothy Grabrian5-Nov-04 7:12
professionalTimothy Grabrian5-Nov-04 7:12 
GeneralRe: Owner Drawn Button Pin
John R. Shaw5-Nov-04 10:30
John R. Shaw5-Nov-04 10:30 
GeneralContext menu on system tray icon Pin
lillah5-Nov-04 4:31
lillah5-Nov-04 4:31 
GeneralRe: Context menu on system tray icon Pin
lillah6-Nov-04 5:28
lillah6-Nov-04 5:28 
GeneralRe: Context menu on system tray icon Pin
ThatsAlok6-Nov-04 18:12
ThatsAlok6-Nov-04 18:12 
lillah wrote:
WM_ICON_NOTIFY

i want to know the value of WM_ICON_NOTIFY,is you put it in range of WM_USER message or not.

i have to used NotifyICondata in one of my article AT CP named ShutDown Alaram.

anyway if you don't want to search code form that here is code.Sorry but it in MFC
<br />
//messsage Notifcation<br />
ON_MESSAGE(WM_USER+75,OnSystemBarMessage)<br />
//ICon Struct<br />
//NOTIFYICONDATA m_niData;<br />
     //handling the ICON at System Tray Icon<br />
	m_niData.cbSize=sizeof(NOTIFYICONDATA);<br />
    m_niData.hIcon=m_Icon;<br />
	m_niData.hWnd=this->m_hWnd;<br />
	sprintf(m_niData.szTip,"Shut Down Alarm :My Father Software inc @ 2003");<br />
	m_niData.uCallbackMessage=WM_USER+75;<br />
	m_niData.uFlags=NIF_ICON|NIF_MESSAGE|NIF_TIP;<br />
	m_niData.uID=ID_ICONDATA;<br />
    Shell_NotifyIcon(NIM_ADD,&m_niData);<br />
<br />
////<br />
<br />
void DlgShutDown::OnSystemBarMessage(WPARAM wParam, LPARAM lParam)<br />
{<br />
	<br />
switch(lParam)<br />
{<br />
case WM_LBUTTONDOWN:this->ShowWindow(SW_RESTORE);this->ShowWindow(SW_SHOW);bMiniShow=FALSE; break;<br />
case WM_RBUTTONDOWN:<br />
	{<br />
		CMenu mnu;<br />
		mnu.LoadMenu(IDR_MENU1);<br />
  //CMenu *PopUpMenu;<br />
		<br />
		PopUpMenu=mnu.GetSubMenu(0);<br />
<br />
		SetForegroundWindow();<br />
		CPoint pt;<br />
		GetCursorPos(&pt);<br />
             <br />
		PopUpMenu->TrackPopupMenu(TPM_RIGHTALIGN,pt.x,pt.y,this);<br />
	<br />
	<br />
	//this->ShowWindow(SW_MINIMIZE);<br />
	break;<br />
   <br />
	}<br />
	}<br />
<br />
<br />
}<br />
<br />
<br />


Hope you can work it out

-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
GeneralRe: Context menu on system tray icon Pin
lillah8-Nov-04 6:13
lillah8-Nov-04 6:13 
GeneralAccessing main form from functions in other classes Pin
PaJamaMan815-Nov-04 3:56
PaJamaMan815-Nov-04 3:56 
GeneralRe: Accessing main form from functions in other classes Pin
RChin5-Nov-04 4:35
RChin5-Nov-04 4:35 
GeneralHelp me plase :: Math Class Pin
Anonymous5-Nov-04 3:49
Anonymous5-Nov-04 3:49 
GeneralRe: Help me plase :: Math Class Pin
Per Svedensten5-Nov-04 4:01
Per Svedensten5-Nov-04 4:01 
GeneralRe: Help me plase :: Math Class Pin
Arsalan Malik5-Nov-04 16:49
Arsalan Malik5-Nov-04 16:49 
Generaltalha rehman here Pin
Talha Rehman6-Nov-04 10:20
Talha Rehman6-Nov-04 10:20 
GeneralHelp me plase :: Array of CString Pin
TooLeeDiN5-Nov-04 3:44
TooLeeDiN5-Nov-04 3:44 
GeneralRe: Help me plase :: Array of CString Pin
Maximilien5-Nov-04 3:53
Maximilien5-Nov-04 3:53 
GeneralRe: Help me plase :: Array of CString Pin
Kevin McFarlane5-Nov-04 4:54
Kevin McFarlane5-Nov-04 4:54 
GeneralFile size on disk Pin
Fred_1235-Nov-04 3:21
Fred_1235-Nov-04 3:21 
GeneralRe: File size on disk Pin
David Crow5-Nov-04 5:20
David Crow5-Nov-04 5:20 
GeneralRe: File size on disk Pin
Arsalan Malik5-Nov-04 16:51
Arsalan Malik5-Nov-04 16:51 
GeneralRe: File size on disk Pin
David Crow8-Nov-04 6:19
David Crow8-Nov-04 6:19 
Generalcountact to the server Pin
basharRSB5-Nov-04 2:59
basharRSB5-Nov-04 2:59 
GeneralRe: countact to the server Pin
jan larsen5-Nov-04 3:33
jan larsen5-Nov-04 3:33 
QuestionIs there any existed code about smart name search? Pin
ATC5-Nov-04 2:45
ATC5-Nov-04 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.