SetScrollPos

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_000C_01BFCA6A.9F61E3C0
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

I created window with style WS_VSCROLL.
When it receives message WM_VSCROLL I want to set position of thumb box =
of scrollbar with this function:
SetScrollPos(hwnd,SB_VERT,50,1)
    -hwnd=3Dwindow that received message

,but it doesnt work, neither does this work:
SendMessage(hwnd, TBM_SETPOS, true, 10 )

Any suggestions?

------=_NextPart_000_000C_01BFCA6A.9F61E3C0
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Lucida Casual" size=3D2>
<DIV>I created window with style WS_VSCROLL.</DIV>
<DIV>When it receives message WM_VSCROLL I want to set position of thumb =
box of=20
scrollbar with this function:</DIV>
<DIV>SetScrollPos(hwnd,SB_VERT,50,1)</DIV>
<DIV>&nbsp;&nbsp;&nbsp; -hwnd=3Dwindow that received message</DIV>
<DIV>&nbsp;</DIV>
<DIV>,but it doesnt work, neither does this work:</DIV>
<DIV>SendMessage(hwnd, TBM_SETPOS, true, 10 )</DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_000C_01BFCA6A.9F61E3C0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu