From e865872b4ef16b6e40cfe868843f1070fa3a239b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jun 2015 12:01:49 +0000 Subject: - 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 --- include/delphi/m_utils.inc | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'include/delphi/m_utils.inc') diff --git a/include/delphi/m_utils.inc b/include/delphi/m_utils.inc index 97f3143b37..d420a05c7b 100644 --- a/include/delphi/m_utils.inc +++ b/include/delphi/m_utils.inc @@ -57,16 +57,6 @@ type TDIALOGRESIZERPROC = function(hwndDlg: THANDLE; lParam: LPARAM; urc: PUTILRESIZECONTROL): int; cdecl; - PUTILRESIZEDIALOG = ^TUTILRESIZEDIALOG; - TUTILRESIZEDIALOG = record - cbSize : int; - hwndDlg : HWND; - hInstance : HINST; - lpTemplate: PAnsiChar; - lParam : LPARAM; - pfnResizer: TDIALOGRESIZERPROC; - end; - PCountryListEntry = ^TCountryListEntry; TCountryListEntry = record id : int; @@ -74,14 +64,6 @@ type ISOcode: array [0..2] of AnsiChar; end; - PSAVEWINDOWPOS = ^TSAVEWINDOWPOS; - TSAVEWINDOWPOS = record - hWnd : HWND; - hContact : TMCONTACT; - szModule : PAnsiChar; // module name eto store the settings in - szNamePrefix: PAnsiChar; // text to prefix on 'x', 'width', etc - end; - const OUF_NEWWINDOW = 1; OUF_UNICODE = 2; @@ -109,7 +91,9 @@ const .pfnResizer should return a combination of one RD_ANCHORx_ and one RD_ANCHORy constant Version: v0.1.0.1+ } - MS_UTILS_RESIZEDIALOG:PAnsiChar = 'Utils/ResizeDialog'; + +function Utils_ResizeDialog(hwndDlg:THANDLE; hInst:HINST; pTemplate:PAnsiChar; pFunc:TDIALOGRESIZERPROC; lParam:LPARAM=0) : int; stdcall; + external CoreDLL name 'Utils_ResizeDialog'; { wParam : countryID @@ -119,6 +103,7 @@ const NULL(0) on failure Version: v0.1.2.0+ } +const MS_UTILS_GETCOUNTRYBYNUMBER:PAnsiChar = 'Utils/GetCountryByNumber'; { -- cgit v1.2.3