Re: Scroll dialog programmatically

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>>

.



Relevant Pages

  • Re: Need to use VBA to put image on a form
    ... Earl Kiosterud ... the OP can place an Image control, ... this way the form's native ScrollBars can be used to scroll the contents of the Image ... Note: Some folks prefer bottom-posting. ...
    (microsoft.public.access.formscoding)
  • Re: How do you interactively write to a CEditView Window
    ... When you scroll the ... the window flashes a lot. ... and trying to control the flashing and deal with the user resetting ... note that sizeof() a string will include the NUL character, while what you really want is ...
    (microsoft.public.vc.mfc)
  • Re: Cannot enter edit boxes on CProperty pages
    ... Are you trying to make the propretysheet scroll, ... tab control to switch pages and on a PC an OK button. ... to an edit box with mouse and edit it, nor does it seem tab keyboard ... not on WinCE device ...
    (microsoft.public.vc.mfc)
  • Re: Image Display Problem !
    ... The table contains approx 500 records and the database size is 1gb. ... Now when I try to scroll the "bound control" even by holding the mouse ... The moment I enable my linked image control, ...
    (comp.databases.ms-access)
  • Re: Best Way To Design Form w/Hundreds of Yes/No Fields
    ... picturebox and scroll bars), and after the Dim statements in the form load ... The user can scroll the questions into view, ... but it uses 1 control to ... I'm working on designing a data entry form for a client. ...
    (comp.lang.basic.visual.misc)