| |

VerySource

 Forgot password?
 Register
Search
Author: wangwei1202

Right-click, occasionally the tray system menu and its own pop-up menu will be displayed at the same time. How to solve

[Copy link]

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-8-7 14:30:01
| Show all posts
Are you constantly changing icons, try to use only static icons
Reply

Use magic Report

2

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-7 16:45:02
| Show all posts
No dynamic icons are used. Is there something wrong with my code?
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-8-7 19:45:01
| Show all posts
Does the notification area change when I right-click?
Reply

Use magic Report

2

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-7 23:45:01
| Show all posts
There is no change. Moreover, two menus only occasionally appear, more often it is normal.
Reply

Use magic Report

2

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-8 07:30:01
| Show all posts
Top it up and find a solution!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-8 11:15:01
| Show all posts
After a rough look, it is estimated that there is a problem with this sentence. Will m_nid.uID change when you click it?
if(wParam != m_nid.uID)
return;
Reply

Use magic Report

2

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-9 14:45:01
| Show all posts
m_nid.uID will not change.
If wParam != m_nid.uID, no menu will pop up at all, and naturally there will be no two menus.
Thank you for your help. If the problem cannot be solved, the post will be closed after 3 days!
Thanks again everyone! !
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-8-16 18:00:01
| Show all posts
SetForegroundWindow(m_nid.hWnd);

TrackPopupMenu(hMenuTray, 0, //TPM_CENTERALIGN | TPM_RIGHTBUTTON,
MousePos.x, MousePos.y, 0, m_nid.hWnd, NULL);

::PostMessage(m_nid.hWnd, WM_NULL, 0, 0);
Reply

Use magic Report

2

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-8-19 15:15:01
| Show all posts
The problem still cannot be solved.
Thank you all for your help!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list