Problems with WM_VSCROLL PostMessage
-
Hi everyone, I am trying to scroll a window by more than one unit at a time. currently I am doing this [CODE] for(int i=0; i<100; i++) pParent->m_SkinList.PostMessage(WM_VSCROLL, MAKELONG(SB_LINEDOWN,0),NULL); [/CODE] I have my current code inside a for loop to make it scroll down multiple times and it works, but it freezes up my app until the for loop is done. How can I scroll by multiple lines using a single PostMessage call? Can I scroll variably in a single call without using a for loop? Thanks, Greg
-
Hi everyone, I am trying to scroll a window by more than one unit at a time. currently I am doing this [CODE] for(int i=0; i<100; i++) pParent->m_SkinList.PostMessage(WM_VSCROLL, MAKELONG(SB_LINEDOWN,0),NULL); [/CODE] I have my current code inside a for loop to make it scroll down multiple times and it works, but it freezes up my app until the for loop is done. How can I scroll by multiple lines using a single PostMessage call? Can I scroll variably in a single call without using a for loop? Thanks, Greg
The HIWORD of the wParam parameter is the position to scroll to
pParent->m_SkinList.PostMessage(WM_VSCROLL, MAKELONG(SB_LINEDOWN,nPos),NULL);
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!
-
Hi everyone, I am trying to scroll a window by more than one unit at a time. currently I am doing this [CODE] for(int i=0; i<100; i++) pParent->m_SkinList.PostMessage(WM_VSCROLL, MAKELONG(SB_LINEDOWN,0),NULL); [/CODE] I have my current code inside a for loop to make it scroll down multiple times and it works, but it freezes up my app until the for loop is done. How can I scroll by multiple lines using a single PostMessage call? Can I scroll variably in a single call without using a for loop? Thanks, Greg