[Bug 46209] New: TB_GETBUTTONINFO does not return toolbar text
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Nov 28 21:04:08 CST 2018
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 at winehq.org
Reporter: nikolaysemenkov at 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
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list