Lines Matching defs:hwndDlg
77 /// @param hwndDlg Handle to active page dialog.
80 virtual BOOL WizardNext(HWND hwndDlg, unsigned index)
89 if (IsDlgButtonChecked(hwndDlg, IDC_MULTIWINDOW))
91 else if (IsDlgButtonChecked(hwndDlg, IDC_FULLSCREEN))
93 else if (IsDlgButtonChecked(hwndDlg, IDC_WINDOWED))
95 else if (IsDlgButtonChecked(hwndDlg, IDC_NODECORATION))
99 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
105 GetDlgItemText(hwndDlg, IDC_DISPLAY, buffer, 512);
111 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
113 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIENTS);
117 if (IsDlgButtonChecked(hwndDlg, IDC_CLIENT))
120 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_PROGRAM);
121 } else if (IsDlgButtonChecked(hwndDlg, IDC_XDMCP))
124 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_XDMCP);
125 } else if (IsDlgButtonChecked(hwndDlg, IDC_CLIENT_NONE))
128 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIPBOARD);
130 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
134 if (IsDlgButtonChecked(hwndDlg, IDC_CLIENT_LOCAL))
136 else if (IsDlgButtonChecked(hwndDlg, IDC_CLIENT_REMOTE))
140 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
146 GetDlgItemText(hwndDlg, IDC_CLIENT_USER, buffer, 512);
149 GetDlgItemText(hwndDlg, IDC_CLIENT_HOST, buffer, 512);
152 GetDlgItemText(hwndDlg, IDC_CLIENT_PROGRAM, buffer, 512);
158 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
160 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIPBOARD);
164 if (IsDlgButtonChecked(hwndDlg, IDC_XDMCP_BROADCAST))
166 else if (IsDlgButtonChecked(hwndDlg, IDC_XDMCP_QUERY))
170 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
174 if (IsDlgButtonChecked(hwndDlg, IDC_XDMCP_INDIRECT))
181 GetDlgItemText(hwndDlg, IDC_XDMCP_HOST, buffer, 512);
187 SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
189 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIPBOARD);
193 if (IsDlgButtonChecked(hwndDlg, IDC_CLIPBOARD))
200 GetDlgItemText(hwndDlg, IDC_EXTRA_PARAMS, buffer, 512);
204 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_FINISH);
212 /// @param hwndDlg Handle to active page dialog.
215 virtual BOOL WizardFinish(HWND hwndDlg, unsigned index)
225 /// @param hwndDlg Handle to active page dialog.
228 virtual BOOL WizardBack(HWND hwndDlg, unsigned index)
234 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIENTS);
241 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_CLIENTS);
244 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_PROGRAM);
247 SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_XDMCP);
255 /// @param hwndDlg Handle to active page dialog.
258 virtual BOOL WizardActivate(HWND hwndDlg, unsigned index)
267 EnableWindow(GetDlgItem(hwndDlg, IDC_XDMCP), config.window != CConfig::MultiWindow);
268 EnableWindow(GetDlgItem(hwndDlg, IDC_XDMCP_DESC), config.window != CConfig::MultiWindow);
275 /// @param hwndDlg Handle to active page dialog.
277 void EnableRemoteProgramGroup(HWND hwndDlg, BOOL state)
279 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_PROTOCOL), state);
280 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_HOST), state);
281 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_USER), state);
282 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_PROTOCOL_DESC), state);
283 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_HOST_DESC), state);
284 EnableWindow(GetDlgItem(hwndDlg, IDC_CLIENT_USER_DESC), state);
287 /// @param hwndDlg Handle to active page dialog.
289 void EnableXDMCPQueryGroup(HWND hwndDlg, BOOL state)
291 EnableWindow(GetDlgItem(hwndDlg, IDC_XDMCP_HOST), state);
292 EnableWindow(GetDlgItem(hwndDlg, IDC_XDMCP_INDIRECT), state);
295 /// @param hwndDlg Handle to active page dialog.
296 void FillProgramBox(HWND hwndDlg)
298 HWND cbwnd = GetDlgItem(hwndDlg, IDC_CLIENT_PROGRAM);
310 /// @param hwndDlg Handle to active page dialog.
311 void FillProtocolBox(HWND hwndDlg)
313 HWND cbwnd = GetDlgItem(hwndDlg, IDC_CLIENT_PROTOCOL);
364 /// @param hwndDlg Handle of active dialog.
369 virtual INT_PTR PageDispatch(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, PROPSHEETPAGE *psp)
383 CheckRadioButton(hwndDlg, IDC_MULTIWINDOW, IDC_NODECORATION, IDC_MULTIWINDOW);
386 CheckRadioButton(hwndDlg, IDC_MULTIWINDOW, IDC_NODECORATION, IDC_FULLSCREEN);
389 CheckRadioButton(hwndDlg, IDC_MULTIWINDOW, IDC_NODECORATION, IDC_WINDOWED);
392 CheckRadioButton(hwndDlg, IDC_MULTIWINDOW, IDC_NODECORATION, IDC_NODECORATION);
396 SetDlgItemText(hwndDlg, IDC_DISPLAY, config.display.c_str());
404 CheckRadioButton(hwndDlg, IDC_CLIENT_NONE, IDC_CLIENT, IDC_CLIENT_NONE);
407 CheckRadioButton(hwndDlg, IDC_CLIENT_NONE, IDC_CLIENT, IDC_CLIENT);
410 CheckRadioButton(hwndDlg, IDC_CLIENT_NONE, IDC_CLIENT, IDC_XDMCP);
416 CheckRadioButton(hwndDlg, IDC_CLIENT_LOCAL, IDC_CLIENT_REMOTE, config.local?IDC_CLIENT_LOCAL:IDC_CLIENT_REMOTE);
417 EnableRemoteProgramGroup(hwndDlg, config.local?FALSE:TRUE);
419 FillProgramBox(hwndDlg);
420 FillProtocolBox(hwndDlg);
423 SetDlgItemText(hwndDlg, IDC_CLIENT_PROGRAM, config.program.c_str());
424 SetDlgItemText(hwndDlg, IDC_CLIENT_USER, config.user.c_str());
425 SetDlgItemText(hwndDlg, IDC_CLIENT_HOST, config.host.c_str());
429 CheckRadioButton(hwndDlg, IDC_XDMCP_QUERY, IDC_XDMCP_BROADCAST, config.broadcast?IDC_XDMCP_BROADCAST:IDC_XDMCP_QUERY);
430 CheckDlgButton(hwndDlg, IDC_XDMCP_INDIRECT, config.indirect?BST_CHECKED:BST_UNCHECKED);
431 EnableXDMCPQueryGroup(hwndDlg, config.broadcast?FALSE:TRUE);
433 SetDlgItemText(hwndDlg, IDC_XDMCP_HOST, config.xdmcp_host.c_str());
436 CheckDlgButton(hwndDlg, IDC_CLIPBOARD, config.clipboard?BST_CHECKED:BST_UNCHECKED);
437 SetDlgItemText(hwndDlg, IDC_EXTRA_PARAMS, config.extra_params.c_str());
450 CheckRadioButton(hwndDlg, IDC_MULTIWINDOW, IDC_NODECORATION, LOWORD(wParam)-4);
451 SetFocus(GetDlgItem(hwndDlg, LOWORD(wParam)-4));
456 EnableRemoteProgramGroup(hwndDlg, LOWORD(wParam) == IDC_CLIENT_REMOTE);
460 EnableXDMCPQueryGroup(hwndDlg, LOWORD(wParam) == IDC_XDMCP_QUERY);
463 ShowSaveDialog(hwndDlg);
468 return CWizard::PageDispatch(hwndDlg, uMsg, wParam, lParam, psp);