Re: Scroll dialog programmatically
- From: "Lisa Pearlson" <no@xxxxxxxx>
- Date: Fri, 29 Jul 2005 19:52:40 +0200
I thought about it, but found DM_RESETSCROLL
"TJ" <someone@xxxxxxxxxxxxx> wrote in message
news:EYmdnWKWTJX8MnTfRVn-3w@xxxxxxxxxxxx
> Have you tried simulating a key press on the control you want to have
> focus?
> SendMessage(hcontrol,WM_KEYUP,(WPARAM)VK_UP,0);
>
>
> Lisa Pearlson wrote:
>> My dialog resource has WS_VSCROLL, .. I can't get everything to fit on
>> the screen so my dialog displays a scroll bar. When I set focus to a
>> control outside the visible area, using the key pads, the control scrolls
>> into view.
>> But when I set focus programmatically to a control outside the visible
>> area (using SetFocus()) then the dialog doesn't scroll.
>> I want to scroll back to top.
>>
>> I tried to use SetScrollPos() and it adjusts the scroll bar only, but
>> doesn't scroll the dialog box content.
>> I tried posting WM_VSCROLL to the dialog box itself, but nothing happens.
>>
>> Any clues?
>>
>> Lisa
>>
.
- References:
- Scroll dialog programmatically
- From: Lisa Pearlson
- Re: Scroll dialog programmatically
- From: TJ
- Scroll dialog programmatically
- Prev by Date: Re: createprocess issue
- Next by Date: Re: SYSTEMTIME and Conversion
- Previous by thread: Re: Scroll dialog programmatically
- Next by thread: Motricity
- Index(es):
Relevant Pages
|