?
Hab es nun hinbekommen
Ich habe ein RECT erstellt und dann darauf hingewiesen:
[code="cpp"]hWndTooltip = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hWnd, NULL, hInstTooltip,NULL);
RECT rect = { 0, 0, 50, 50 };
SetWindowPos(hWndTooltip, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
TOOLINFO ti = { 0 };
ti.cbSize = sizeof(TOOLINFO);
ti.uFlags = TTF_SUBCLASS;
ti.hwnd = hWnd;
ti.hinst = hInstTooltip;
ti.lpszText = "Test";
ti.rect.left = rect.left;
ti.rect.top = rect.top;
ti.rect.right = rect.right;
ti.rect.bottom = rect.bottom;
GetClientRect (hWnd, &rect);
SendMessage(hWndTooltip, TTM_ADDTOOL, NULL, (LPARAM) (LPTOOLINFO) &ti);[/code]