Take the tour ×  Im trying to scroll other program (PowerPoint
2013) by sending WM_HSCROLL, and it will work only if I offer
the correct LPARAM (not NULL) to SendMessage.  The value of
LPARAM is dynamic, it will change if you close and open a new
program. Now I can only get its value by hooking WM_HSCROLL and
clicking scroll bar manually.  // This is my code:  LPARAM
lParam = 0x0a616c38;  // Found by hooking WM_HSCROLL
SendMessage(hTarget, WM_HSCROLL, SB_LINERIGHT, lParam);  So is
it possible to get the correct LPARAM programatically? Many
thanks!  p.s. The scroll bar is not a real window in PowerPoint
2013. p.s. It returns 1 if I use GetScrollInfo(hTarget, SB_CTL,
&scrollinfo), but all values inside scrollinfo are zero. p.s.
Office Home and Student 2013 Official Site  share|improve this
question For what it's worth, GetScrollInfo only works when
called on a window that is an actual standard Windows scrollbar
(ie has a classname of 'SCROLLBAR') when using SB_CTL, or is a
window that is using non-client scroll