mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-22 04:01:39 +02:00
* fixed wrong declaration of TreeView_GetItemRect
* fixed code of TreeView_GetItemRect git-svn-id: trunk@8064 -
This commit is contained in:
parent
6e4643c425
commit
305c71201a
@ -5657,7 +5657,7 @@ CONST
|
||||
TVM_GETITEMRECT = (TV_FIRST + 4);
|
||||
|
||||
// Macro 160
|
||||
Function TreeView_GetItemRect( hwnd : hwnd; hitem: TREEITEM; code : WPARAM; prc : pRECT):BOOL;inline;
|
||||
Function TreeView_GetItemRect( hwnd : hwnd; hitem: HTREEITEM; code : WPARAM; prc : pRECT):BOOL;inline;
|
||||
Function TreeView_GetItemRect( hwnd : hwnd; hitem: HTREEITEM; var prc : TRECT;code : Bool):BOOL;inline;
|
||||
|
||||
CONST
|
||||
@ -10776,9 +10776,9 @@ end;
|
||||
// #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
|
||||
// (*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSG((hwnd), TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
|
||||
|
||||
Function TreeView_GetItemRect( hwnd : hwnd; hitem: TREEITEM; code : WPARAM; prc : pRECT):BOOL;inline;
|
||||
Function TreeView_GetItemRect( hwnd : hwnd; hitem: HTREEITEM; code : WPARAM; prc : pRECT):BOOL;inline;
|
||||
Begin
|
||||
HTREEITEM(prc)^:=HITEM;
|
||||
HTREEITEM(prc):=HITEM;
|
||||
Result:=Bool(SendMessage((hwnd), TVM_GETITEMRECT, code, LPARAM(prc)));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user