https://bugs.winehq.org/show_bug.cgi?id=46209
Bug ID: 46209 Summary: TB_GETBUTTONINFO does not return toolbar text Product: Wine Version: 3.21 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: nikolaysemenkov@gmail.com Distribution: ---
Hi, Wine failed to return the toolbar text, even if just successfully add it, then next attempt to get it in a row also failed. Code: TBBUTTON tbb; tbb.idCommand = 123; tbb.iBitmap = I_IMAGENONE; tbb.fsState = TBSTATE_ENABLED; tbb.fsStyle = BTNS_BUTTON; tbb.dwData = 0; tbb.iString = int(SendMessage(hwndToolBar, TB_ADDSTRING, 0, LPARAM(TEXT("TEXT2TEST")))); SendMessage(hwndToolBar, TB_ADDBUTTONS, 1, LPARAM(&tbb));
int nItem = 0; tchar szLabel[LSTR]; TBBUTTONINFO tbbi; tbbi.cbSize = sizeof(TBBUTTONINFO); tbbi.dwMask = TBIF_BYINDEX | TBIF_TEXT; tbbi.pszText = szLabel; tbbi.cchText = LSTR; SendMessage(hwndToolBar, TB_GETBUTTONINFO, WPARAM(nItem), LPARAM(&tbbi));
tbbi.pszText is empty on wine, but works on windows.
Nik