mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 13:53:14 +08:00
Added switch delay and double-tap options to win32 and added a
tray icon to the client and server that gives status feedback to the user and allows the user to kill the app.
This commit is contained in:
@@ -103,6 +103,18 @@ enableItem(HWND hwnd, int id, bool enabled)
|
||||
EnableWindow(GetDlgItem(hwnd, id), enabled);
|
||||
}
|
||||
|
||||
void
|
||||
setItemChecked(HWND hwnd, bool checked)
|
||||
{
|
||||
SendMessage(hwnd, BM_SETCHECK, checked ? BST_CHECKED : BST_UNCHECKED, 0);
|
||||
}
|
||||
|
||||
bool
|
||||
isItemChecked(HWND hwnd)
|
||||
{
|
||||
return (SendMessage(hwnd, BM_GETCHECK, 0, 0) == BST_CHECKED);
|
||||
}
|
||||
|
||||
CString
|
||||
getAppPath(const CString& appName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user