Skip to content

Commit 1902488

Browse files
committed
upd project sdk
1 parent 9f2ae19 commit 1902488

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/controls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -968,12 +968,12 @@ VOID _app_toolbar_resize (
968968
rbi.cbSize = sizeof (REBARBANDINFOW);
969969
rbi.fMask = RBBIM_ID | RBBIM_CHILD | RBBIM_IDEALSIZE | RBBIM_CHILDSIZE;
970970

971-
if (!_r_wnd_sendmessage (config.hrebar, 0, RB_GETBANDINFO, (WPARAM)i, (LPARAM)&rbi))
971+
if (!_r_rebar_getinfo (config.hrebar, 0, i, &rbi))
972972
continue;
973973

974974
if (rbi.wID == REBAR_TOOLBAR_ID)
975975
{
976-
if (!_r_wnd_sendmessage (config.htoolbar, 0, TB_GETIDEALSIZE, FALSE, (LPARAM)&ideal_size))
976+
if (!_r_toolbar_getidealsize (config.htoolbar, 0, FALSE, &ideal_size))
977977
continue;
978978

979979
button_size = _r_toolbar_getbuttonsize (config.hrebar, IDC_TOOLBAR);
@@ -1001,7 +1001,7 @@ VOID _app_toolbar_resize (
10011001
continue;
10021002
}
10031003

1004-
_r_wnd_sendmessage (config.hrebar, 0, RB_SETBANDINFO, (WPARAM)i, (LPARAM)&rbi);
1004+
_r_rebar_setinfo (config.hrebar, 0, i, &rbi);
10051005
}
10061006
}
10071007

src/listview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ VOID _app_listview_showitemby_id (
418418

419419
// restore scroll position
420420
if (scroll_pos > 0)
421-
_r_wnd_sendmessage (hwnd, listview_id, LVM_SCROLL, 0, (LPARAM)scroll_pos);
421+
_r_listview_scroll (hwnd, listview_id, scroll_pos);
422422
}
423423

424424
VOID _app_listview_showitemby_param (

0 commit comments

Comments
 (0)