|
Posted by Alexander Shargin on August 4, 2005, 6:59 pm
Please log in for more thread options
I would try to send WM_KEYDOWN/WM_KEYUP messages to dialog box with VK_DOWN
as the key pressed. Another idea is to enumerate child controls and move
them manually after you update scrol pos via SetScrollInfo.
--
Alexander Shargin
Microsoft MVP in Mobile Devices
http://www.pocketpcdn.com - Pocket PC Developer Network
http://www.smartphonedn.com - Smartphone Developer Network
http://www.rsdn.ru - Russian Software Developer Network
show/hide quoted text
> Hi,
> I've asked this before but got no response. So I'm giving it another try.
> I am trying to programmatically scroll to the bottom of the page in a
> scrollable dialog box.
> I know I can use DM_RESETSCROLL to scroll to the top. That works fine.
> But I need to scroll to the bottom.
> I can update the scroll bar by using SetScrollInfo() but the dialog box
> doesn't scroll.
> I tried calling DM_RESETSCROLL with different parameters after that, or
> posting a WM_VSCROLL to the dialog window, but to no avail.
> How can I do this? A scroll bar just posts a WM_VSCROLL (or WM_HSCROLL) to
> its parent window when it's being scrolled, and it's the parent window
> that scrolls itself in response to WM_VSCROLL I thought. But obviously
> not.
> Lisa
>
|
> I've asked this before but got no response. So I'm giving it another try.
> I am trying to programmatically scroll to the bottom of the page in a
> scrollable dialog box.
> I know I can use DM_RESETSCROLL to scroll to the top. That works fine.
> But I need to scroll to the bottom.
> I can update the scroll bar by using SetScrollInfo() but the dialog box
> doesn't scroll.
> I tried calling DM_RESETSCROLL with different parameters after that, or
> posting a WM_VSCROLL to the dialog window, but to no avail.
> How can I do this? A scroll bar just posts a WM_VSCROLL (or WM_HSCROLL) to
> its parent window when it's being scrolled, and it's the parent window
> that scrolls itself in response to WM_VSCROLL I thought. But obviously
> not.
> Lisa
>