Click here to get back home

Scroll position in dialog

 HomeNewsGroups | Search

microsoft.public.smartphone.developer - Developing software for MS Smartphone? This is your group! 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Scroll position in dialog Lisa Pearlson 08-04-2005
Posted by Lisa Pearlson on August 4, 2005, 1:47 pm
Please log in for more thread options
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




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




Similar ThreadsPosted
Scroll position in Dialog window? July 18, 2005, 5:44 am
Listbox scroll not seen December 12, 2005, 10:38 pm
SetFocus and Scroll into view July 28, 2005, 8:54 am
scroll wheel fails to go through recently used apps icons on the home screen December 16, 2006, 9:17 pm
Get GPS position March 26, 2006, 5:43 pm
Cursor Position in Textbox September 19, 2005, 9:22 am
GetAsyncKeyState and stylus tap position October 14, 2008, 10:42 am
critical.How to get position of video from WMP10 with APP made by December 18, 2008, 4:57 am
dialog based app July 10, 2005, 8:44 am
scrollbar in a dialog August 11, 2005, 12:12 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy