aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Hooking.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/vncconfig/Hooking.h')
-rw-r--r--win/vncconfig/Hooking.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/vncconfig/Hooking.h b/win/vncconfig/Hooking.h
index d3cf8620..9f84230d 100644
--- a/win/vncconfig/Hooking.h
+++ b/win/vncconfig/Hooking.h
@@ -32,14 +32,14 @@ namespace rfb {
public:
HookingPage(const RegKey& rk)
: PropSheetPage(GetModuleHandle(nullptr), MAKEINTRESOURCE(IDD_HOOKING)), regKey(rk) {}
- void initDialog() {
+ void initDialog() override {
setItemChecked(IDC_USEPOLLING, rfb::win32::SDisplay::updateMethod == 0);
setItemChecked(IDC_USEHOOKS, (rfb::win32::SDisplay::updateMethod == 1));
setItemChecked(IDC_POLLCONSOLES, rfb::win32::WMPoller::poll_console_windows);
setItemChecked(IDC_CAPTUREBLT, rfb::win32::DeviceFrameBuffer::useCaptureBlt);
onCommand(IDC_USEHOOKS, 0);
}
- bool onCommand(int id, int /*cmd*/) {
+ bool onCommand(int id, int /*cmd*/) override {
switch (id) {
case IDC_USEPOLLING:
case IDC_USEHOOKS:
@@ -54,7 +54,7 @@ namespace rfb {
}
return false;
}
- bool onOk() {
+ bool onOk() override {
if (isItemChecked(IDC_USEPOLLING))
regKey.setInt("UpdateMethod", 0);
if (isItemChecked(IDC_USEHOOKS))