Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>
Fixed a problem when using string resources as tooltext.
This commit is contained in:
parent
21d50f8ded
commit
00ced7b092
|
@ -107,12 +107,12 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
|
||||||
SendMessageA (toolPtr->hwnd, WM_NOTIFY,
|
SendMessageA (toolPtr->hwnd, WM_NOTIFY,
|
||||||
(WPARAM)toolPtr->uId, (LPARAM)&ttnmdi);
|
(WPARAM)toolPtr->uId, (LPARAM)&ttnmdi);
|
||||||
|
|
||||||
if ((ttnmdi.hinst) && (HIWORD((UINT)ttnmdi.szText) == 0)) {
|
if ((ttnmdi.hinst) && (HIWORD((UINT)ttnmdi.lpszText) == 0)) {
|
||||||
LoadStringW (ttnmdi.hinst, (UINT)ttnmdi.szText,
|
LoadStringW (ttnmdi.hinst, (UINT)ttnmdi.lpszText,
|
||||||
infoPtr->szTipText, INFOTIPSIZE);
|
infoPtr->szTipText, INFOTIPSIZE);
|
||||||
if (ttnmdi.uFlags & TTF_DI_SETITEM) {
|
if (ttnmdi.uFlags & TTF_DI_SETITEM) {
|
||||||
toolPtr->hinst = ttnmdi.hinst;
|
toolPtr->hinst = ttnmdi.hinst;
|
||||||
toolPtr->lpszText = (LPWSTR)ttnmdi.szText;
|
toolPtr->lpszText = (LPWSTR)ttnmdi.lpszText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ttnmdi.szText[0]) {
|
else if (ttnmdi.szText[0]) {
|
||||||
|
|
Loading…
Reference in New Issue