aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/OptionsDialog.cxx
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-05-24 15:49:05 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2006-05-24 15:49:05 +0000
commitf233addb86b7ef9d177c08b47478996657cd9704 (patch)
tree2ef61411646d002cb7485a05a190a41e3eb63843 /vncviewer/OptionsDialog.cxx
parentb7ad8b614f7288686df33f8fbc555b713c9fdec4 (diff)
downloadtigervnc-f233addb86b7ef9d177c08b47478996657cd9704.tar.gz
tigervnc-f233addb86b7ef9d177c08b47478996657cd9704.zip
Added the scale controls to the vncviewer options dialog.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@587 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r--vncviewer/OptionsDialog.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index 2e43b38f..da24cf1b 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -163,6 +163,15 @@ public:
setItemChecked(IDC_ACCEPT_BELL, dlg->options.acceptBell);
setItemChecked(IDC_AUTO_RECONNECT, dlg->options.autoReconnect);
setItemChecked(IDC_SHOW_TOOLBAR, dlg->options.showToolbar);
+ char scale_values[8][20] = {
+ "25","50","75","90","100","125","150","Auto"
+ };
+ HWND hScaleCombo = GetDlgItem(handle, IDC_COMBO_SCALE);
+ for (int i = 0; i <= 7; i++) {
+ SendMessage(hScaleCombo, CB_INSERTSTRING,
+ (WPARAM)i, (LPARAM)(int FAR*)scale_values[i]);
+ }
+ SetDlgItemText(handle, IDC_COMBO_SCALE, "100");
}
virtual bool onOk() {
dlg->options.shared = isItemChecked(IDC_CONN_SHARED);