Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/core/sys/windows/commctrl.d
Original file line number Diff line number Diff line change
Expand Up @@ -5306,8 +5306,9 @@ int ListView_FindItem(HWND w, int i, const(LV_FINDINFO)* p) {
}

BOOL ListView_GetItemRect(HWND w, int i, LPRECT p, int c) {
return cast(BOOL) SendMessage(w, LVM_GETITEMRECT, i, p ?
(p.left = c, cast(LPARAM) p) : 0);
if (p)
p.left = c;
return cast(BOOL) SendMessage(w, LVM_GETITEMRECT, i, cast(LPARAM) p);
}

BOOL ListView_SetItemPosition(HWND w, int i, int x, int y) {
Expand Down Expand Up @@ -6028,8 +6029,11 @@ static if (_WIN32_IE >= 0x300) {
}

BOOL ListView_GetSubItemRect(HWND w, int i, int isi, int c, LPRECT p) {
return cast(BOOL) SendMessage(w, LVM_GETSUBITEMRECT, i,
p ? (p.left = c, p.top = isi, cast(LPARAM) p) : 0);
if (p) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brace on its own line

Copy link
Member

@MartinNowak MartinNowak May 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brace on its own line

done 8e09c99

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

p.left = c;
p.top = isi;
}
return cast(BOOL) SendMessage(w, LVM_GETSUBITEMRECT, i, cast(LPARAM) p);
}

HCURSOR ListView_SetHotCursor(HWND w, HCURSOR c) {
Expand Down