Click here to Skip to main content
13,766,144 members
Rate this:
 
Please Sign up or sign in to 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 6-Dec-17 23:54pm
Updated 7-Dec-17 0:09am
v2

1 solution

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181114.1 | Last Updated 7 Dec 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100