Skip to content

Commit

Permalink
增加任务栏窗口可以放在任务栏的左侧;一些细节方面的改进;版本号升级到1.67
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyang219 committed Jan 21, 2018
1 parent f32ccab commit 6cd265f
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 65 deletions.
133 changes: 78 additions & 55 deletions TrafficMonitor/TaskBarDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,30 +104,33 @@ bool CTaskBarDlg::AdjustWindowPos()
{
if (this->m_hWnd == NULL)
return false;
CRect rcMin;
CRect rcMin, rcBar;
::GetWindowRect(m_hMin, rcMin); //获得最小化窗口的区域
::GetWindowRect(m_hBar, rcBar); //获得二级容器的区域
m_taskbar_on_top_or_bottom = IsTaskbarOnTopOrBottom();
int wnd_x_pos{}, wnd_y_pos{};
if (m_taskbar_on_top_or_bottom) //当任务栏在桌面顶部或底部时
{
//设置窗口大小
m_rect.right = m_rect.left + (theApp.m_tbar_show_cpu_memory ? m_window_width : m_window_width_s);
m_rect.bottom = m_rect.top + m_window_height;
if (rcMin.Width() != m_min_bar_width) //如果最小化窗口的宽度改变了,重新设置任务栏窗口的位置
{
m_left_space = rcMin.left - rcBar.left;
m_rcMin = rcMin;
m_min_bar_width = m_rcMin.Width() - m_rect.Width(); //保存最小化窗口宽度
::MoveWindow(m_hMin, m_left_space, 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE); //设置最小化窗口的位置
::MoveWindow(this->m_hWnd, m_left_space + m_rcMin.Width() - m_rect.Width() + 2, (m_rcMin.Height() - m_rect.Height()) / 2, \
m_rect.Width(), m_rect.Height(), TRUE); //设置任务栏窗口的位置

CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == m_left_space + m_rcMin.Width() - m_rect.Width() + 2 && rect.top == (m_rcMin.Height() - m_rect.Height()) / 2)
if (!theApp.m_taskbar_data.tbar_wnd_on_left)
{
::MoveWindow(m_hMin, m_left_space, 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE); //设置最小化窗口的位置
wnd_x_pos = m_left_space + m_rcMin.Width() - m_rect.Width() + 2;
}
else
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
::MoveWindow(m_hMin, m_left_space + m_rect.Width(), 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE);
wnd_x_pos = m_left_space;
}
wnd_y_pos = (m_rcMin.Height() - m_rect.Height()) / 2;
::MoveWindow(this->m_hWnd, wnd_x_pos, wnd_y_pos, m_rect.Width(), m_rect.Height(), TRUE); //设置任务栏窗口的位置
}
}
else //当任务栏在屏幕在左侧或右侧时
Expand All @@ -137,24 +140,34 @@ bool CTaskBarDlg::AdjustWindowPos()
m_rect.bottom = m_rect.top + (theApp.m_tbar_show_cpu_memory ? (2 * m_window_height) : m_window_height);
if (rcMin.Height() != m_min_bar_height) //如果最小化窗口的高度改变了,重新设置任务栏窗口的位置
{
m_top_space = rcMin.top - rcBar.top;
m_rcMin = rcMin;
m_min_bar_height = m_rcMin.Height() - m_rect.Height(); //保存最小化窗口高度
::MoveWindow(m_hMin, 0, m_top_space, m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE); //设置最小化窗口的位置
int left_pos = (m_rcMin.Width() - m_window_width_s) / 2;
if (left_pos < 0) left_pos = 0;
::MoveWindow(this->m_hWnd, left_pos, m_top_space + m_rcMin.Height() - m_rect.Height() + 2, \
m_rect.Width(), m_rect.Height(), TRUE); //设置任务栏窗口的位置

CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == left_pos && rect.top == m_top_space + m_rcMin.Height() - m_rect.Height() + 2)
if (!theApp.m_taskbar_data.tbar_wnd_on_left)
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
::MoveWindow(m_hMin, 0, m_top_space, m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE); //设置最小化窗口的位置
wnd_y_pos = m_top_space + m_rcMin.Height() - m_rect.Height() + 2;
}
else
{
::MoveWindow(m_hMin, 0, m_top_space + m_rect.Height(), m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE); //设置最小化窗口的位置
wnd_y_pos = m_top_space;
}
wnd_x_pos = (m_rcMin.Width() - m_window_width_s) / 2;
if (wnd_x_pos < 0) wnd_x_pos = 0;
::MoveWindow(this->m_hWnd, wnd_x_pos, wnd_y_pos, m_rect.Width(), m_rect.Height(), TRUE); //设置任务栏窗口的位置
}
}

CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == wnd_x_pos && rect.top == wnd_y_pos)
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
}

if (m_connot_insert_to_task_bar && ::GetForegroundWindow() == m_hTaskbar) //在窗口无法嵌入任务栏时,如果焦点设置在了任务栏上,则让窗口置顶
{
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); //设置置顶
Expand All @@ -172,8 +185,10 @@ bool CTaskBarDlg::IsTaskbarOnTopOrBottom()
{
::GetWindowRect(m_hMin, rcMin); //获得最小化窗口的区域
::GetWindowRect(m_hBar, rcBar); //获得二级容器的区域
m_left_space = rcMin.left - rcBar.left;
m_top_space = rcMin.top - rcBar.top;
if(m_left_space==0)
m_left_space = rcMin.left - rcBar.left;
if(m_top_space==0)
m_top_space = rcMin.top - rcBar.top;

::GetWindowRect(m_hTaskbar, rect); //获取任务栏的矩形区域
return (rect.Width()>=rect.Height()); //如果任务栏的宽度大于高度,则任务在屏幕的顶部或底部
Expand All @@ -197,6 +212,8 @@ void CTaskBarDlg::SaveConfig()
WritePrivateProfileString(_T("task_bar"), _T("down_string"), (theApp.m_taskbar_data.down_string + L'$').c_str(), theApp.m_config_path.c_str());
WritePrivateProfileString(_T("task_bar"), _T("cpu_string"), (theApp.m_taskbar_data.cpu_string + L'$').c_str(), theApp.m_config_path.c_str());
WritePrivateProfileString(_T("task_bar"), _T("memory_string"), (theApp.m_taskbar_data.memory_string + L'$').c_str(), theApp.m_config_path.c_str());

CCommon::WritePrivateProfileIntW(L"task_bar", L"task_bar_wnd_on_left", theApp.m_taskbar_data.tbar_wnd_on_left, theApp.m_config_path.c_str());
}

void CTaskBarDlg::LoadConfig()
Expand Down Expand Up @@ -225,6 +242,8 @@ void CTaskBarDlg::LoadConfig()
theApp.m_taskbar_data.memory_string = buff;
if (!theApp.m_taskbar_data.memory_string.empty() && theApp.m_taskbar_data.memory_string.back() == L'$')
theApp.m_taskbar_data.memory_string.pop_back();

theApp.m_taskbar_data.tbar_wnd_on_left = (GetPrivateProfileInt(_T("task_bar"), _T("task_bar_wnd_on_left"), 0, theApp.m_config_path.c_str()) != 0);
}

void CTaskBarDlg::ApplySettings()
Expand Down Expand Up @@ -309,36 +328,31 @@ BOOL CTaskBarDlg::OnInitDialog()
m_top_space = m_rcMin.top - m_rcBar.top;

m_taskbar_on_top_or_bottom = IsTaskbarOnTopOrBottom();
int wnd_x_pos, wnd_y_pos;
if (m_taskbar_on_top_or_bottom) //如果任务栏在桌面顶部或底部
{
m_min_bar_width = m_rcMin.Width() - m_rect.Width(); //保存最小化窗口宽度

//通过用MoveWindow函数来改变小化窗口的宽度
::MoveWindow(m_hMin, m_left_space, 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE);
if(!theApp.m_taskbar_data.tbar_wnd_on_left)
::MoveWindow(m_hMin, m_left_space, 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE);
else
::MoveWindow(m_hMin, m_left_space + m_rect.Width(), 0, m_rcMin.Width() - m_rect.Width(), m_rcMin.Height(), TRUE);

::SetParent(this->m_hWnd, m_hBar); //把程序窗口设置成任务栏的子窗口

//调整程序窗口的大小和位置
//注:当把当前窗口设置为任务栏的子窗口后,MoveWindow函数移动的位置是基于任务栏的相对位置,
//在某些情况下,如被安全软件阻止时,窗口无法嵌入任务栏,窗口会移动到基于屏幕左上角的绝对位置。
::MoveWindow(this->m_hWnd, m_left_space + m_rcMin.Width() - m_rect.Width() + 2, (m_rcBar.Height() - m_rect.Height()) / 2, \
m_rect.Width(), m_rect.Height(), TRUE);

CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == m_left_space + m_rcMin.Width() - m_rect.Width() + 2 && rect.top == (m_rcBar.Height() - m_rect.Height()) / 2)
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
m_connot_insert_to_task_bar = true;
//MessageBox(_T("警告:窗口没有成功嵌入任务栏,可能已被安全软件阻止!"), NULL, MB_ICONWARNING);
}
if(!theApp.m_taskbar_data.tbar_wnd_on_left)
wnd_x_pos = m_left_space + m_rcMin.Width() - m_rect.Width() + 2;
else
wnd_x_pos = m_left_space;
wnd_y_pos = (m_rcBar.Height() - m_rect.Height()) / 2;
::MoveWindow(this->m_hWnd, wnd_x_pos, wnd_y_pos, m_rect.Width(), m_rect.Height(), TRUE);
}
else //当任务栏在桌面左侧或右侧时
{
int left_pos = (m_rcMin.Width() - m_window_width_s) / 2;
if (left_pos < 0) left_pos = 0;
if (theApp.m_tbar_show_cpu_memory) //将CPU和内存利用率放到网速的下面
{
m_rect.right = m_rect.left + m_window_width_s;
Expand All @@ -347,26 +361,34 @@ BOOL CTaskBarDlg::OnInitDialog()
m_min_bar_height = m_rcMin.Height() - m_rect.Height(); //保存最小化窗口高度

//通过用MoveWindow函数来改变小化窗口的高度
::MoveWindow(m_hMin, 0, m_top_space, m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE);
if (!theApp.m_taskbar_data.tbar_wnd_on_left)
::MoveWindow(m_hMin, 0, m_top_space, m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE);
else
::MoveWindow(m_hMin, 0, m_top_space + m_rect.Height(), m_rcMin.Width(), m_rcMin.Height() - m_rect.Height(), TRUE);

::SetParent(this->m_hWnd, m_hBar); //把程序窗口设置成任务栏的子窗口

//调整程序窗口的大小和位置
//注:当把当前窗口设置为任务栏的子窗口后,MoveWindow函数移动的位置是基于任务栏的相对位置,
//在某些情况下,如被安全软件阻止时,窗口无法嵌入任务栏,窗口会移动到基于屏幕左上角的绝对位置。
::MoveWindow(this->m_hWnd, left_pos, m_top_space + m_rcMin.Height() - m_rect.Height() + 2, \
m_rect.Width(), m_rect.Height(), TRUE);
wnd_x_pos = (m_rcMin.Width() - m_window_width_s) / 2;
if (wnd_x_pos < 0) wnd_x_pos = 0;
if (!theApp.m_taskbar_data.tbar_wnd_on_left)
wnd_y_pos = m_top_space + m_rcMin.Height() - m_rect.Height() + 2;
else
wnd_y_pos = m_top_space;
::MoveWindow(this->m_hWnd, wnd_x_pos, wnd_y_pos, m_rect.Width(), m_rect.Height(), TRUE);

CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == left_pos && rect.top == m_top_space + m_rcMin.Height() - m_rect.Height() + 2)
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
m_connot_insert_to_task_bar = true;
//MessageBox(_T("警告:窗口没有成功嵌入任务栏,可能已被安全软件阻止!"), NULL, MB_ICONWARNING);
}
}
CRect rect;
GetWindowRect(rect); //获取当前窗口的绝对位置
//如果窗口没有被成功嵌入到任务栏,窗口移动到了基于屏幕左上角的绝对位置,则修正窗口的位置
if (rect.left == wnd_x_pos && rect.top == wnd_y_pos)
{
rect.MoveToXY(rect.left + m_rcBar.left, rect.top + m_rcBar.top);
this->MoveWindow(rect);
m_connot_insert_to_task_bar = true;
//MessageBox(_T("警告:窗口没有成功嵌入任务栏,可能已被安全软件阻止!"), NULL, MB_ICONWARNING);
}

m_menu.LoadMenu(IDR_TASK_BAR_MENU);
Expand All @@ -392,9 +414,10 @@ void CTaskBarDlg::OnCancel()
SaveConfig();
DestroyWindow();
//程序关闭的时候,把最小化窗口的width恢复回去
if(IsTaskbarOnTopOrBottom())
if (IsTaskbarOnTopOrBottom())
::MoveWindow(m_hMin, m_left_space, 0, m_rcMin.Width(), m_rcMin.Height(), TRUE);
else

::MoveWindow(m_hMin, 0, m_top_space, m_rcMin.Width(), m_rcMin.Height(), TRUE);

//CDialogEx::OnCancel();
Expand Down
4 changes: 2 additions & 2 deletions TrafficMonitor/TaskBarDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class CTaskBarDlg : public CDialogEx
int m_min_bar_width; //最小化窗口缩小宽度后的宽度
int m_min_bar_height; //最小化窗口缩小高度后的高度(用于任务栏在屏幕左侧或右侧时)

int m_left_space; //最小化窗口和二级窗口窗口左侧的边距
int m_top_space; //最小化窗口和二级窗口窗口顶部的边距(用于任务栏在屏幕左侧或右侧时)
int m_left_space{}; //最小化窗口和二级窗口窗口左侧的边距
int m_top_space{}; //最小化窗口和二级窗口窗口顶部的边距(用于任务栏在屏幕左侧或右侧时)

bool m_connot_insert_to_task_bar{ false }; //如果窗口无法嵌入任务栏,则为true
bool m_taskbar_on_top_or_bottom{ true }; //如果任务栏在屏幕顶部或底部,则为ture
Expand Down
9 changes: 9 additions & 0 deletions TrafficMonitor/TaskBarSettingsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ BEGIN_MESSAGE_MAP(CTaskBarSettingsDlg, CDialogEx)
ON_EN_CHANGE(IDC_MEMORY_EDIT1, &CTaskBarSettingsDlg::OnEnChangeMemoryEdit1)
ON_BN_CLICKED(IDC_SET_DEFAULT_BUTTON1, &CTaskBarSettingsDlg::OnBnClickedSetDefaultButton1)
ON_BN_CLICKED(IDC_SWITCH_UP_DOWN_CHECK1, &CTaskBarSettingsDlg::OnBnClickedSwitchUpDownCheck1)
ON_BN_CLICKED(IDC_TASKBAR_WND_ON_LEFT_CHECK, &CTaskBarSettingsDlg::OnBnClickedTaskbarWndOnLeftCheck)
END_MESSAGE_MAP()


Expand All @@ -70,6 +71,7 @@ BOOL CTaskBarSettingsDlg::OnInitDialog()
SetDlgItemText(IDC_MEMORY_EDIT1, m_data.memory_string.c_str());

((CButton*)GetDlgItem(IDC_SWITCH_UP_DOWN_CHECK1))->SetCheck(m_data.swap_up_down);
((CButton*)GetDlgItem(IDC_TASKBAR_WND_ON_LEFT_CHECK))->SetCheck(m_data.tbar_wnd_on_left);

return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
Expand Down Expand Up @@ -201,3 +203,10 @@ void CTaskBarSettingsDlg::OnBnClickedSwitchUpDownCheck1()
// TODO: 在此添加控件通知处理程序代码
m_data.swap_up_down = (((CButton*)GetDlgItem(IDC_SWITCH_UP_DOWN_CHECK1))->GetCheck() != 0);
}


void CTaskBarSettingsDlg::OnBnClickedTaskbarWndOnLeftCheck()
{
// TODO: 在此添加控件通知处理程序代码
m_data.tbar_wnd_on_left = (((CButton*)GetDlgItem(IDC_TASKBAR_WND_ON_LEFT_CHECK))->GetCheck() != 0);
}
1 change: 1 addition & 0 deletions TrafficMonitor/TaskBarSettingsDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ class CTaskBarSettingsDlg : public CDialogEx
afx_msg void OnEnChangeMemoryEdit1();
afx_msg void OnBnClickedSetDefaultButton1();
afx_msg void OnBnClickedSwitchUpDownCheck1();
afx_msg void OnBnClickedTaskbarWndOnLeftCheck();
};
Binary file modified TrafficMonitor/TrafficMonitor.aps
Binary file not shown.
1 change: 1 addition & 0 deletions TrafficMonitor/TrafficMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct TaskBarSettingData
wstring cpu_string; //默认为“CPU:”
wstring memory_string; //默认为“内存:”
bool swap_up_down{ false }; //交换上传和下载显示的位置
bool tbar_wnd_on_left{ false }; //如果为true,则任务栏窗口显示在任务栏的左侧(或上方)
};

struct GeneralSettingData
Expand Down
Binary file modified TrafficMonitor/TrafficMonitor.rc
Binary file not shown.
1 change: 1 addition & 0 deletions TrafficMonitor/TrafficMonitor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
</ItemGroup>
<ItemGroup>
<Image Include="res\about_background.bmp" />
<Image Include="res\about_background_hd.bmp" />
<Image Include="res\donate.bmp" />
<Image Include="res\notifyicon.ico" />
<Image Include="res\TrafficMonitor.ico" />
Expand Down
3 changes: 3 additions & 0 deletions TrafficMonitor/TrafficMonitor.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,8 @@
<Image Include="res\notifyicon.ico">
<Filter>资源文件</Filter>
</Image>
<Image Include="res\about_background_hd.bmp">
<Filter>资源文件</Filter>
</Image>
</ItemGroup>
</Project>
10 changes: 9 additions & 1 deletion TrafficMonitor/TrafficMonitorDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ BOOL CAboutDlg::OnInitDialog()
CRect rect;
GetClientRect(rect);
rect.bottom = rect.Height() * 2 / 5; //图片高度占对话框高度的2/5
if (theApp.DPI(100) >= 125)
m_about_img.SetBitmap(LoadBitmap(theApp.m_hInstance, MAKEINTRESOURCE(IDB_ABOUT_BACKGROUND_HD)));
else
m_about_img.SetBitmap(LoadBitmap(theApp.m_hInstance, MAKEINTRESOURCE(IDB_ABOUT_BACKGROUND)));
m_about_img.MoveWindow(rect);
m_mail.SetURL(_T("mailto:[email protected]")); //设置超链接
//m_check_update.SetURL(_T("http://pan.baidu.com/s/1c1LkPQ4"));
Expand Down Expand Up @@ -674,7 +678,11 @@ BOOL CTrafficMonitorDlg::OnInitDialog()
m_ntIcon.cbSize = sizeof(NOTIFYICONDATA); //该结构体变量的大小
m_ntIcon.hIcon = AfxGetApp()->LoadIcon(IDI_NOFITY_ICON); //图标,通过资源ID得到
m_ntIcon.hWnd = this->m_hWnd; //接收托盘图标通知消息的窗口句柄
TCHAR atip[128] = _T("流量监控器"); //鼠标指向图标时显示的提示
#ifdef _DEBUG
TCHAR atip[128] = _T("流量监控器 (Debug)"); //鼠标指向图标时显示的提示
#else
TCHAR atip[128] = _T("流量监控器");
#endif
wcscpy_s(m_ntIcon.szTip, 128, atip);
m_ntIcon.uCallbackMessage = MY_WM_NOTIFYICON; //应用程序定义的消息ID号
m_ntIcon.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP; //图标的属性:设置成员uCallbackMessage、hIcon、szTip有效
Expand Down
11 changes: 6 additions & 5 deletions TrafficMonitor/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ show_notify_icon=1
show_cpu_memory=1
mouse_penetrate=0
show_task_bar_wnd=1
position_x=1592
position_y=800
position_x=1689
position_y=973
text_color=16777215
hide_main_window=0
skin_selected=\皮肤04
Expand All @@ -23,16 +23,17 @@ memory_string=
auto_select=1
connection_name=Marvell AVASTAR Wireless-AC Network Controller-WFP Native MAC Layer LightWeight Filter-0000
[task_bar]
task_bar_back_color=0
task_bar_text_color=16777215
tack_bar_show_cpu_memory=1
task_bar_back_color=96
task_bar_text_color=13684991
tack_bar_show_cpu_memory=0
tack_bar_font_name=微软雅黑
tack_bar_font_size=9
task_bar_swap_up_down=0
up_string=↑: $
down_string=↓: $
cpu_string=CPU: $
memory_string=内存: $
task_bar_wnd_on_left=0
[other]
no_multistart_warning=0
[general]
Expand Down
1 change: 1 addition & 0 deletions TrafficMonitor/history_traffic.dat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2018/01/21 7629
2018/01/20 544
2017/06/25 0
2017/06/04 10
Expand Down
Binary file modified TrafficMonitor/res/about_background.bmp
Binary file not shown.
Binary file added TrafficMonitor/res/about_background_hd.bmp
Binary file not shown.
Binary file modified TrafficMonitor/resource.h
Binary file not shown.
4 changes: 2 additions & 2 deletions TrafficMonitor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ using std::ofstream;
#define DELAY_TIMER 1235 //延时定时器ID
#define TASKBAR_TIMER 1236

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

#define VERSION L"1.66"
#define VERSION L"1.67"

0 comments on commit 6cd265f

Please sign in to comment.