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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll event notification

Status
Not open for further replies.

Tremorblue

Programmer
Apr 30, 2004
56
GB
I want to know when the scroll bar on a form is moved so I can perform and update.

I am using code similar to this to capture the event
In the header file.

void virtual __fastcall WMVScroll( TMessage &Message );

BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_VSCROLL,TMessage,WMVScroll)
END_MESSAGE_MAP(TForm);

I call the function in the main CPP file.

void __fastcall TFormLabel::WMVScroll( TMessage &Message )
{}

The problem is that this captures the event and the scroll bar does not move.

I want to know the event has occured but not effect it.
Any help much appreciated.

/Tremor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top