Skip to content

Commit

Permalink
版本号更新等
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed May 13, 2018
1 parent 6733efb commit 7f8032b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
Binary file modified TrafficMonitor/TrafficMonitor.rc
Binary file not shown.
24 changes: 17 additions & 7 deletions TrafficMonitor/TrafficMonitorDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,23 @@ void CTrafficMonitorDlg::SetTransparency(int transparency)

void CTrafficMonitorDlg::SetAlwaysOnTop()
{
if (!m_is_foreground_fullscreen || (m_is_foreground_fullscreen && !theApp.m_main_wnd_data.hide_main_wnd_when_fullscreen))
{
if (m_always_on_top)
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //设置置顶
else
SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //取消置顶
}
//if (!m_is_foreground_fullscreen || (m_is_foreground_fullscreen && !theApp.m_main_wnd_data.hide_main_wnd_when_fullscreen))
//{
// if (m_always_on_top)
// SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //设置置顶
// else
// SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //取消置顶
//}
if (theApp.m_hide_main_window)
return;
else if (theApp.m_main_wnd_data.hide_main_wnd_when_fullscreen && m_is_foreground_fullscreen) //当设置有程序全屏时隐藏悬浮窗且有程序在全屏运行时,不执行置顶操作
return;

if (m_always_on_top)
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //设置置顶
else
SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //取消置顶

}

void CTrafficMonitorDlg::SetMousePenetrate()
Expand Down
4 changes: 2 additions & 2 deletions TrafficMonitor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ using std::ofstream;

#define MAX_INSERT_TO_TASKBAR_CNT 5 //尝试嵌入任务栏的最大次数

#define VERSION L"1.72"
#define COMPILE_DATE L"2018/04/21"
#define VERSION L"1.73"
#define COMPILE_DATE L"2018/05/13"

#define MAX_NOTIFY_ICON 4 //可选的通知区图标数量

Expand Down

0 comments on commit 7f8032b

Please sign in to comment.