diff options
| author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-02-19 23:12:55 +0000 | 
|---|---|---|
| committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-02-19 23:12:55 +0000 | 
| commit | 28c8e357d9b52584cca400864dbefed69b69f8f6 (patch) | |
| tree | 2fdf0fc1934f504ce99b77c68a40baa21de538a6 /plugins/SimpleStatusMsg/src | |
| parent | 9b1fc3cd956ce527bd744c538db6cfb5fff572e6 (diff) | |
core: WINE fix - handle invalid WNDPROC for edit control
TabSRMM: wine fixes for settings, code rewrited
SimpleStatusMsg: resourses changed
git-svn-id: http://svn.miranda-ng.org/main/trunk@12206 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleStatusMsg/src')
| -rw-r--r-- | plugins/SimpleStatusMsg/src/options.cpp | 6 | ||||
| -rw-r--r-- | plugins/SimpleStatusMsg/src/resource.h | 1 | 
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp index d5b147eaf6..a43ff3519a 100644 --- a/plugins/SimpleStatusMsg/src/options.cpp +++ b/plugins/SimpleStatusMsg/src/options.cpp @@ -102,19 +102,20 @@ struct OptDlgData  	struct SingleStatusMsg *status_msg;
  };
 -static INT_PTR CALLBACK DlgOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 +INT_PTR CALLBACK DlgOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
  {
  	struct OptDlgData *data = (struct OptDlgData *)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
  	switch (uMsg) {
  	case WM_INITDIALOG:
  		{
 -			int	val, i, index;
 +			int val, i, index;
  			TranslateDialogDefault(hwndDlg);
  			data = (struct OptDlgData *)mir_alloc(sizeof(struct OptDlgData));
  			SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)data);
 +			mir_subclassWindow(GetDlgItem(hwndDlg, IDC_OPTEDIT1), OptEditBoxSubProc);
  			SendDlgItemMessage(hwndDlg, IDC_OPTEDIT1, EM_LIMITTEXT, 1024, 0);
  			SendDlgItemMessage(hwndDlg, IDC_SMAXLENGTH, UDM_SETBUDDY, (WPARAM)GetDlgItem(hwndDlg, IDC_EMAXLENGTH), 0);
 @@ -254,7 +255,6 @@ static INT_PTR CALLBACK DlgOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L  			}
  			ShowWindow(GetDlgItem(hwndDlg, IDC_VARSHELP), ServiceExists(MS_VARS_FORMATSTRING));
 -			mir_subclassWindow( GetDlgItem(hwndDlg, IDC_OPTEDIT1), OptEditBoxSubProc);
  			return TRUE;
  		}
 diff --git a/plugins/SimpleStatusMsg/src/resource.h b/plugins/SimpleStatusMsg/src/resource.h index 6646093446..a7a25c8396 100644 --- a/plugins/SimpleStatusMsg/src/resource.h +++ b/plugins/SimpleStatusMsg/src/resource.h @@ -111,6 +111,7 @@  #define ID__FORTUNEAWAYMSG              40034
  #define IDM_VRANDMSG                    40035
  #define IDM_VRANDDEFMSG                 40036
 +#define IDC_STATIC                      -1
  // Next default values for new objects
  // 
  | 
