Skip to content

Commit

Permalink
源码添加注释,把第三方工具移动到bin目录下
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwenjun committed Apr 1, 2019
1 parent 0cfcaf4 commit 47755b0
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion START_APP.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
::MY_APP = "D:\Git\git-bash.exe"

@echo.
@set PATH=%~dp0;%PATH%
@set PATH=%~dp0;%~dp0/bin;%PATH%
:: 两个冒号是注释,删除命令行首开启命令

:: BROOK + KcpTun + Udp2Raw 客户端接口配置
Expand Down
Binary file modified WinKcp_Launcher.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Windows_KCP.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo.
@set PATH=%~dp0;%PATH%
@set PATH=%~dp0;%~dp0/bin;%PATH%

@set SERVER_IP=1.2.3.4
@set PORT=1999
Expand Down
2 changes: 1 addition & 1 deletion Windows_UDP2RAW.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo.
@set PATH=%~dp0;%PATH%
@set PATH=%~dp0;%~dp0/bin;%PATH%

@set SERVER_IP=1.2.3.4
@set PORT=2999
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/ipbox_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void read_appname(HWND &hwndDlg)
}
}

// IP管理表框,判断鼠标单击或双击
void ipbox_list_signal(HWND &hwndDlg, int wmEvent)
{

Expand Down
6 changes: 5 additions & 1 deletion src/launcher.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "launcher.h"


// 鼠标点击坐标,对应三个图标的程序,二维码坐标,信息栏坐标
void mouse_click_signal(HWND &hwndDlg, LPARAM lParam)
{
// 注册图标焦点POS
Expand All @@ -16,6 +17,7 @@ void mouse_click_signal(HWND &hwndDlg, LPARAM lParam)

char app_cmd[256] = {0};

// 鼠标点击图标,打开对应程序
if (abs((int)mouse_pos.x - 40) < 30) {
if (abs((int)mouse_pos.y - WG_POS.y) < 30) {
read_app_cmd(app_cmd, "::WG_APP");
Expand All @@ -32,6 +34,7 @@ void mouse_click_signal(HWND &hwndDlg, LPARAM lParam)
}
}

// 点击二维码,访问开源主页
if (abs((int)mouse_pos.x - DONATE_POS.x) < 80) {
if (abs((int)mouse_pos.y - DONATE_POS.y) < 80) {

Expand All @@ -42,6 +45,7 @@ void mouse_click_signal(HWND &hwndDlg, LPARAM lParam)

}

// 点击信息栏区域,切换信息
char buf[512] = {0};
static int id = 0;
if (id >= 12)
Expand Down Expand Up @@ -74,7 +78,7 @@ void mouse_click_signal(HWND &hwndDlg, LPARAM lParam)
EndDialog(hwndDlg, 0);
}

// 读取 START_APP.cmd 中的标题
// 读取 START_APP.cmd 中对应三个图标的程序路径
void read_app_cmd(char* app_cmd, const char* value)
{
char buf[512] = {0};
Expand Down
3 changes: 3 additions & 0 deletions src/launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
#include <string.h>
#include "resource.h"

// 鼠标点击坐标,对应三个图标的程序,二维码坐标,信息栏坐标
void mouse_click_signal(HWND &hwndDlg, LPARAM lParam);

// 读取 START_APP.cmd 中对应三个图标的程序路径
void read_app_cmd(char* app_cmd, const char* value);

#endif // LAUNCHER_H_INCLUDED
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ int hide_run_cmd(char* cmdline);
void App_Initdialog(HWND & hwnd);

HBITMAP g_hBitmap_DONATE; // 打赏图片的句柄
HICON g_hIcon; // 对话框图标句柄
bool debug_flg = false;
HICON g_hIcon; // 对话框图标句柄
bool debug_flg = false; // 调试:勾选->显示窗口

HINSTANCE hInst;

Expand Down

0 comments on commit 47755b0

Please sign in to comment.