34 |
|
|
35 |
#ifdef _MSC_VER |
#ifdef _MSC_VER |
36 |
#include "winpt_header.h" |
#include "winpt_header.h" |
37 |
|
|
38 |
static DWORD help_arr[] = { |
static DWORD help_arr[] = { |
39 |
IDC_CLIPEDIT_SEND, WPT_CLIPEDIT_COPY, |
IDC_CLIPEDIT_SEND, WPT_CLIPEDIT_COPY, |
40 |
IDC_CLIPEDIT_CLEAR, WPT_CLIPEDIT_CLEAR, |
IDC_CLIPEDIT_CLEAR, WPT_CLIPEDIT_CLEAR, |
41 |
IDC_CLIPEDIT_LOAD, WPT_CLIPEDIT_LOAD, |
IDC_CLIPEDIT_LOAD, WPT_CLIPEDIT_LOAD, |
42 |
IDC_CLIPEDIT_SAVE, WPT_CLIPEDIT_SAVE, |
IDC_CLIPEDIT_SAVE, WPT_CLIPEDIT_SAVE, |
43 |
IDC_CLIPEDIT_QUOTE, WPT_CLIPEDIT_QUOTE, |
IDC_CLIPEDIT_QUOTE, WPT_CLIPEDIT_QUOTE, |
44 |
0, 0 |
0, 0}; |
|
}; |
|
45 |
#endif |
#endif |
46 |
|
|
47 |
/* Load the clipboard contents into the text field in @dlg. |
/* Load the clipboard contents into the text field in @dlg. |
189 |
BOOL CALLBACK |
BOOL CALLBACK |
190 |
clip_edit_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
clip_edit_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam) |
191 |
{ |
{ |
192 |
|
static DWORD cookie = 0; |
193 |
|
|
194 |
switch (msg) { |
switch (msg) { |
195 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
196 |
SetWindowText (dlg, _("Clipboard Editor")); |
SetWindowText (dlg, _("Clipboard Editor")); |
199 |
SetDlgItemText (dlg, IDC_CLIPEDIT_LOAD, _("&Load")); |
SetDlgItemText (dlg, IDC_CLIPEDIT_LOAD, _("&Load")); |
200 |
SetDlgItemText (dlg, IDC_CLIPEDIT_SAVE, _("&Save")); |
SetDlgItemText (dlg, IDC_CLIPEDIT_SAVE, _("&Save")); |
201 |
SetDlgItemText (dlg, IDC_CLIPEDIT_QUOTE, _("Add quotes")); |
SetDlgItemText (dlg, IDC_CLIPEDIT_QUOTE, _("Add quotes")); |
202 |
SetDlgItemText (dlg, IDOK, _("&Exit")); |
SetDlgItemText (dlg, IDOK, _("&Close")); |
203 |
|
|
204 |
|
html_help_init (&cookie); |
205 |
load_clipboard (dlg); |
load_clipboard (dlg); |
206 |
center_window (dlg, NULL); |
center_window (dlg, NULL); |
207 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |
208 |
return TRUE; |
return TRUE; |
209 |
|
|
210 |
|
case WM_DESTROY: |
211 |
|
html_help_deinit (); |
212 |
|
break; |
213 |
|
|
214 |
|
case WM_HELP: |
215 |
|
html_help_dispatch (lparam, "winpt.chm::winpt_texts.txt", help_arr); |
216 |
|
break; |
217 |
|
|
218 |
case WM_SYSCOMMAND: |
case WM_SYSCOMMAND: |
219 |
if (LOWORD (wparam) == SC_CLOSE) |
if (LOWORD (wparam) == SC_CLOSE) |
220 |
EndDialog (dlg, TRUE); |
EndDialog (dlg, TRUE); |