优化左键点击Yama托盘图标的效果

This commit is contained in:
yuanyuanxiang
2019-05-08 11:47:55 +08:00
parent e31c88b59c
commit 7005d80ead
3 changed files with 16 additions and 3 deletions

View File

@@ -186,10 +186,15 @@ void CMy2015RemoteDlg::OnIconNotify(WPARAM wParam, LPARAM lParam)
{
switch ((UINT)lParam)
{
case WM_LBUTTONDOWN:
case WM_LBUTTONDBLCLK:
case WM_LBUTTONDOWN:
{
ShowWindow(IsWindowVisible() ? SW_HIDE : SW_SHOW);
if (IsIconic())
{
ShowWindow(SW_NORMAL);
break;
}
ShowWindow(IsWindowVisible() ? SW_HIDE : SW_SHOWNORMAL);
SetForegroundWindow();
break;
}
case WM_RBUTTONDOWN: