mirror of https://github.com/tp4a/teleport
pull/130/head
parent
a358b79095
commit
c78ead3457
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
extern HINSTANCE g_hInstance;
|
extern HINSTANCE g_hInstance;
|
||||||
|
|
||||||
HWND g_hDlgMain = NULL;
|
HWND g_hDlgMain = nullptr;
|
||||||
static DWORD g_dwTaskbarRecreateMessage = 0;
|
static DWORD g_dwTaskbarRecreateMessage = 0;
|
||||||
static BOOL g_IsTrayIconShowed = FALSE;
|
static BOOL g_IsTrayIconShowed = FALSE;
|
||||||
|
|
||||||
|
@ -90,19 +90,13 @@ INT_PTR CALLBACK eomDlgMainProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARA
|
||||||
|
|
||||||
case IDM_OPEN_WEB:
|
case IDM_OPEN_WEB:
|
||||||
{
|
{
|
||||||
ShellExecute(NULL, _T("open"), TS_WEB_URL, NULL, NULL, SW_SHOW);
|
ShellExecute(nullptr, _T("open"), TS_WEB_URL, nullptr, nullptr, SW_SHOW);
|
||||||
return TRUE;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case IDM_OPEN_BBS:
|
|
||||||
{
|
|
||||||
ShellExecute(NULL, _T("open"), TS_BBS_URL, NULL, NULL, SW_SHOW);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}break;
|
}break;
|
||||||
|
|
||||||
case IDM_OPEN_CONFIG:
|
case IDM_OPEN_CONFIG:
|
||||||
{
|
{
|
||||||
ShellExecute(NULL, _T("open"), _T("http://127.0.0.1:50022/config"), NULL, NULL, SW_SHOW);
|
ShellExecute(nullptr, _T("open"), _T("http://127.0.0.1:50022/config"), nullptr, nullptr, SW_SHOW);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}break;
|
}break;
|
||||||
|
|
||||||
|
@ -129,7 +123,7 @@ INT_PTR CALLBACK eomDlgMainProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARA
|
||||||
HMENU hPopup = GetSubMenu(hMenu, 0);
|
HMENU hPopup = GetSubMenu(hMenu, 0);
|
||||||
SetMenuDefaultItem(hPopup, IDM_ABOUT, FALSE);
|
SetMenuDefaultItem(hPopup, IDM_ABOUT, FALSE);
|
||||||
|
|
||||||
TrackPopupMenu(hPopup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, pt.x, pt.y, 0, hwndDlg, NULL);
|
TrackPopupMenu(hPopup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, pt.x, pt.y, 0, hwndDlg, nullptr);
|
||||||
DestroyMenu(hMenu);
|
DestroyMenu(hMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +210,7 @@ void center_window(HWND hwndDlg)
|
||||||
rc.top = (cyScreen - (rc.bottom - rc.top)) / 3;
|
rc.top = (cyScreen - (rc.bottom - rc.top)) / 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowPos(hwndDlg, NULL, rc.left, rc.top, 0, 0, SWP_NOSIZE);
|
SetWindowPos(hwndDlg, nullptr, rc.left, rc.top, 0, 0, SWP_NOSIZE);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,8 +1,7 @@
|
||||||
#ifndef __TS_CONST_H__
|
#ifndef __TS_CONST_H__
|
||||||
#define __TS_CONST_H__
|
#define __TS_CONST_H__
|
||||||
|
|
||||||
#define TS_WEB_URL L"http://teleport.eomsoft.net/"
|
#define TS_WEB_URL L"https://tp4a.com/"
|
||||||
#define TS_BBS_URL L"http://bbs.eomsoft.net/"
|
|
||||||
#define TS_TRAY_MSG L"Teleport助手正常工作中"
|
#define TS_TRAY_MSG L"Teleport助手正常工作中"
|
||||||
|
|
||||||
#define TS_HTTP_RPC_PORT 50022
|
#define TS_HTTP_RPC_PORT 50022
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -45,6 +45,9 @@ void http_rpc_stop(void);
|
||||||
|
|
||||||
typedef std::map<ex_astr, ex_astr> content_type_map;
|
typedef std::map<ex_astr, ex_astr> content_type_map;
|
||||||
|
|
||||||
|
// for https server, see
|
||||||
|
// http://www.xiaovdiy.cn/?post=284
|
||||||
|
|
||||||
class TsHttpRpc
|
class TsHttpRpc
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue