Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

printf

macrumors regular
Original poster
Aug 27, 2008
105
0
i'm creating a scrollbar at runtime using the following:

Code:
CreateScrollBarControl(window,&sb_vert_rect,0,0,100,50,true,ScrollingFeedbackProc,&sb);

how do i capture scroll events in the handler for the window this control was created in? i've tried kEventClassControl, kEventControlClick with InstallControlEventHandler just to capture a click, but it only captures clicks in the window, not the scrollbar control.

also, i'm using a compositing window with hiview.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.