SebastianStricker
Programmer
Hello,
how can I achieve that any tooltip-window I created within an CScrollView-derived class updates it's position while scrolling horizontal or vertical? At this time when I scroll, the tooltips screen coordinates are not updated and it's always shown on the same place on the screen (doesn't matter what positions the scrollbars have..)
Note: I created the tooltips via CreateWindowEx:
m_hwndTip = CreateWindowEx(WS_EX_TOPMOST,
TOOLTIPS_CLASS,
NULL,
WS_POPUP | TTS_ALWAYSTIP,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
hwnd,
NULL,
hThisInstance,
NULL
);
and did not write an own tooltip class. My aim is, that the tootip moves around with an object drawn in the scrollview when somebody uses the scrollbars.
regards, Sebastian
how can I achieve that any tooltip-window I created within an CScrollView-derived class updates it's position while scrolling horizontal or vertical? At this time when I scroll, the tooltips screen coordinates are not updated and it's always shown on the same place on the screen (doesn't matter what positions the scrollbars have..)
Note: I created the tooltips via CreateWindowEx:
m_hwndTip = CreateWindowEx(WS_EX_TOPMOST,
TOOLTIPS_CLASS,
NULL,
WS_POPUP | TTS_ALWAYSTIP,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
hwnd,
NULL,
hThisInstance,
NULL
);
and did not write an own tooltip class. My aim is, that the tootip moves around with an object drawn in the scrollview when somebody uses the scrollbars.
regards, Sebastian