summaryrefslogtreecommitdiff
path: root/plugins/Utils.pas/sedit.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-21 12:01:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-21 12:01:49 +0000
commite865872b4ef16b6e40cfe868843f1070fa3a239b (patch)
tree0710f76e005c25ce151c46015c0853af6101d2cc /plugins/Utils.pas/sedit.pas
parent87cf54594168e5579bbb852bcb4aaae3fefa3b89 (diff)
- resizer moved to mir_core, because it uses hard-coded windows structures;
- MS_UTILS_RESIZEDIALOG replaced with a short call of Utils_ResizeDialog; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14295 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils.pas/sedit.pas')
-rw-r--r--plugins/Utils.pas/sedit.pas10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/Utils.pas/sedit.pas b/plugins/Utils.pas/sedit.pas
index a935f9f71b..6c57c7e976 100644
--- a/plugins/Utils.pas/sedit.pas
+++ b/plugins/Utils.pas/sedit.pas
@@ -1003,7 +1003,6 @@ var
idchide,idcshow,csize:integer;
{$IFDEF Miranda}
pc:PAnsiChar;
- urd:TUTILRESIZEDIALOG;
{$ELSE}
rc,rc1:TRECT;
{$ENDIF}
@@ -1056,14 +1055,7 @@ begin
WM_SIZE: begin
{$IFDEF Miranda}
- FillChar(urd,SizeOf(TUTILRESIZEDIALOG),0);
- urd.cbSize :=SizeOf(urd);
- urd.hwndDlg :=Dialog;
- urd.hInstance :=hInstance;
- urd.lpTemplate:='IDD_STRUCTURE';//MAKEINTRESOURCEA(IDD_STRUCTURE);
- urd.lParam :=0;
- urd.pfnResizer:=@StructEditDlgResizer;
- CallService(MS_UTILS_RESIZEDIALOG,0,TLPARAM(@urd));
+ Utils_ResizeDialog(Dialog, hInstance, 'IDD_STRUCTURE', @StructEditDlgResizer);
{$ELSE}
GetWindowRect(Dialog,rc);