The TB_GETROWS message retrieves the number of rows of buttons in a toolbar with the TBSTYLE_WRAPABLE style.
TB_GETROWS wParam = 0; lParam = 0;
Returns the number of rows.