/[winpt]/trunk/Src/wptClipEditDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptClipEditDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 121 by twoaday, Mon Dec 12 11:19:56 2005 UTC revision 201 by twoaday, Sat Apr 22 18:30:24 2006 UTC
# Line 99  load_clipboard_from_file (HWND dlg) Line 99  load_clipboard_from_file (HWND dlg)
99      open.lStructSize = sizeof (OPENFILENAME);            open.lStructSize = sizeof (OPENFILENAME);      
100      open.hInstance = glob_hinst;                  open.hInstance = glob_hinst;            
101      open.lpstrTitle = _("File Open");            open.lpstrTitle = _("File Open");      
102      open.lpstrFilter = (char *)_("All Files (*.*)\0*.*\0\0");            open.lpstrFilter = (char *)"All Files (*.*)\0*.*\0\0";
103      open.hwndOwner = dlg;                open.hwndOwner = dlg;          
104      open.lpstrFile = file;                        open.lpstrFile = file;                  
105      open.nMaxFile = sizeof (file)-1;                      open.nMaxFile = sizeof (file)-1;                
# Line 147  save_clipboard_to_file (HWND dlg) Line 147  save_clipboard_to_file (HWND dlg)
147      save.lStructSize = sizeof (OPENFILENAME);            save.lStructSize = sizeof (OPENFILENAME);      
148      save.hInstance = glob_hinst;                  save.hInstance = glob_hinst;            
149      save.lpstrTitle = _("File Save");            save.lpstrTitle = _("File Save");      
150      save.lpstrFile = (char *)_("All Files (*.*)\0*.*\0\0");              save.lpstrFile = (char *)"All Files (*.*)\0*.*\0\0";
151      save.hwndOwner = dlg;                        save.hwndOwner = dlg;                  
152      save.lpstrFile = file;                        save.lpstrFile = file;                  
153      save.nMaxFile = sizeof (file) - 1;      save.nMaxFile = sizeof (file) - 1;
# Line 189  save_clipboard_to_file (HWND dlg) Line 189  save_clipboard_to_file (HWND 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  {  {
     static DWORD cookie = 0;  
   
192      switch (msg)  {      switch (msg)  {
193      case WM_INITDIALOG:      case WM_INITDIALOG:
194          SetWindowText (dlg, _("Clipboard Editor"));          SetWindowText (dlg, _("Clipboard Editor"));
# Line 201  clip_edit_dlg_proc (HWND dlg, UINT msg, Line 199  clip_edit_dlg_proc (HWND dlg, UINT msg,
199          SetDlgItemText (dlg, IDC_CLIPEDIT_QUOTE, _("Add quotes"));          SetDlgItemText (dlg, IDC_CLIPEDIT_QUOTE, _("Add quotes"));
200          SetDlgItemText (dlg, IDOK, _("&Close"));          SetDlgItemText (dlg, IDOK, _("&Close"));
201    
         html_help_init (&cookie);  
202          load_clipboard (dlg);          load_clipboard (dlg);
203          center_window (dlg, NULL);          center_window (dlg, NULL);
204          SetForegroundWindow (dlg);          SetForegroundWindow (dlg);
205          return TRUE;          return TRUE;
           
     case WM_DESTROY:  
         html_help_deinit ();  
         break;  
206    
207      case WM_HELP:      case WM_HELP:
208          html_help_dispatch (lparam, "winpt.chm::winpt_texts.txt", help_arr);          html_help_dispatch (lparam, "winpt.chm::winpt_texts.txt", help_arr);
# Line 222  clip_edit_dlg_proc (HWND dlg, UINT msg, Line 215  clip_edit_dlg_proc (HWND dlg, UINT msg,
215                    
216      case WM_COMMAND:      case WM_COMMAND:
217          switch (LOWORD (wparam)) {          switch (LOWORD (wparam)) {
218            case IDCANCEL:
219                EndDialog (dlg, FALSE);
220                return TRUE;
221    
222          case IDOK:                        case IDOK:              
223              EndDialog (dlg, TRUE);              EndDialog (dlg, TRUE);
224              return TRUE;              return TRUE;

Legend:
Removed from v.121  
changed lines
  Added in v.201

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26