Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a application, where on clicking on minimize button it should minimise to system tray and on clicking right button it should pop up a menu. can someone help the easy way to achieve this without adding huge .cpp files

What I have tried:

void CXTransferDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
DWORD dwMsg = NIM_ADD;
if (nID == SC_MINIMIZE)
{}

where i need to add the piece of code in the minimize loop
Posted
Updated 6-Dec-17 23:09pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900