Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll-view with tooltips

Status
Not open for further replies.

SebastianStricker

Programmer
Aug 28, 2003
10
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top