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
https://bugs.winehq.org/show_bug.cgi?id=46209
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Thank you for the report, could you attach complete source code for such test program? If it's not possible, it's still would be interesting to see what styles you're using to create this window.
https://bugs.winehq.org/show_bug.cgi?id=46209
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEEDINFO
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Nikolay, any news regarding that test case?
https://bugs.winehq.org/show_bug.cgi?id=46209
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- This example works the same on Windows - it does not return text for this button. Without full test program it's hard to guess what went wrong.
https://bugs.winehq.org/show_bug.cgi?id=46209
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution|--- |ABANDONED
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- Marking abandoned, it's unclear how to reproduce this and questions where left unanswered for a long time.
https://bugs.winehq.org/show_bug.cgi?id=46209
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=46209
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED
--- Comment #6 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=46209
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- Closing bugs marked as abandoned