------------------------------------------------------------------------
r4251 | acceptthis | 2013-03-08 04:18:20 +0000 (Fri, 08 Mar 2013) | 1 line mingw32 apparently doesn't define those. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4247 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
64bc9464fe
commit
1ea2bb0e06
1 changed files with 18 additions and 1 deletions
|
@ -464,6 +464,23 @@ char *GetTooltipText(editor_t *editor)
|
||||||
else
|
else
|
||||||
return NULL;//"Type info not available. Compile first.";
|
return NULL;//"Type info not available. Compile first.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TTF_TRACK
|
||||||
|
#define TTF_TRACK 0x0020
|
||||||
|
#endif
|
||||||
|
#ifndef TTF_ABSOLUTE
|
||||||
|
#define TTF_ABSOLUTE 0x0080
|
||||||
|
#endif
|
||||||
|
#ifndef TTM_SETMAXTIPWIDTH
|
||||||
|
#define TTM_SETMAXTIPWIDTH (WM_USER + 24)
|
||||||
|
#endif
|
||||||
|
#ifndef TTM_TRACKACTIVATE
|
||||||
|
#define TTM_TRACKACTIVATE (WM_USER + 17)
|
||||||
|
#endif
|
||||||
|
#ifndef TTM_TRACKPOSITION
|
||||||
|
#define TTM_TRACKPOSITION (WM_USER + 18)
|
||||||
|
#endif
|
||||||
|
|
||||||
static LONG CALLBACK EditorWndProc(HWND hWnd,UINT message,
|
static LONG CALLBACK EditorWndProc(HWND hWnd,UINT message,
|
||||||
WPARAM wParam,LPARAM lParam)
|
WPARAM wParam,LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
@ -563,7 +580,7 @@ static LONG CALLBACK EditorWndProc(HWND hWnd,UINT message,
|
||||||
TOOLINFO toolInfo = { 0 };
|
TOOLINFO toolInfo = { 0 };
|
||||||
toolInfo.cbSize = sizeof(toolInfo);
|
toolInfo.cbSize = sizeof(toolInfo);
|
||||||
toolInfo.hwnd = hWnd;
|
toolInfo.hwnd = hWnd;
|
||||||
toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS | TTF_TRACK;
|
toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS | TTF_TRACK | TTF_ABSOLUTE;
|
||||||
toolInfo.uId = (UINT_PTR)editor->editpane;
|
toolInfo.uId = (UINT_PTR)editor->editpane;
|
||||||
newtext = GetTooltipText(editor);
|
newtext = GetTooltipText(editor);
|
||||||
toolInfo.lpszText = editor->tooltiptext;
|
toolInfo.lpszText = editor->tooltiptext;
|
||||||
|
|
Loading…
Reference in a new issue