summaryrefslogtreecommitdiff
path: root/plugins/Utils.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Utils.pas')
-rw-r--r--plugins/Utils.pas/editwrapper.pas20
-rw-r--r--plugins/Utils.pas/sedit.pas10
2 files changed, 3 insertions, 27 deletions
diff --git a/plugins/Utils.pas/editwrapper.pas b/plugins/Utils.pas/editwrapper.pas
index 6572db56e4..034a45e15b 100644
--- a/plugins/Utils.pas/editwrapper.pas
+++ b/plugins/Utils.pas/editwrapper.pas
@@ -89,7 +89,6 @@ var
vhi:TVARHELPINFO;
cr:integer;
idshow,idhide:integer;
- urd:TUTILRESIZEDIALOG;
begin
result:=0;
@@ -154,14 +153,7 @@ begin
end;
WM_SIZE: begin
- FillChar(urd,SizeOf(TUTILRESIZEDIALOG),0);
- urd.cbSize :=SizeOf(urd);
- urd.hwndDlg :=Dialog;
- urd.hInstance :=hInstance;
- urd.lpTemplate:='IDD_EDITCONTROL';
- urd.lParam :=0;
- urd.pfnResizer:=@EditDlgResizer;
- CallService(MS_UTILS_RESIZEDIALOG,0,tlparam(@urd));
+ Utils_ResizeDialog(Dialog, hInstance, 'IDD_EDITCONTROL', @EditDlgResizer);
end;
WM_COMMAND: begin
@@ -403,7 +395,6 @@ var
p:pResultText;
cr:integer;
idshow,idhide:integer;
- urd:TUTILRESIZEDIALOG;
begin
result:=0;
@@ -449,14 +440,7 @@ begin
end;
WM_SIZE: begin
- FillChar(urd,SizeOf(TUTILRESIZEDIALOG),0);
- urd.cbSize :=SizeOf(urd);
- urd.hwndDlg :=Dialog;
- urd.hInstance :=hInstance;
- urd.lpTemplate:='IDD_EDITCONTROL';
- urd.lParam :=0;
- urd.pfnResizer:=@EditDlgResizer;
- CallService(MS_UTILS_RESIZEDIALOG,0,tlparam(@urd));
+ Utils_ResizeDialog(Dialog, hInstance, 'IDD_EDITCONTROL', @EditDlgResizer);
end;
WM_COMMAND: begin
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);