I
Israel
Unregistered / Unconfirmed
GUEST, unregistred user!
这段程序可以让memo上下滚动,<br>procedure TForm1.Button2Click(Sender: TObject);<br>Var<br> ScrollMessage:TWMVScroll;<br>begin<br> ScrollMessage.Msg:=WM_VScroll;<br> ScrollMessage.ScrollCode:=SB_LINEDOWN;<br> ScrollMessage.Pos:=200;<br> memo1.Dispatch(ScrollMessage);<br>end;<br><br>但类似的这段程序却不能控制memo左右滚动,怎么回事?<br>procedure TForm1.Button1Click(Sender: TObject);<br>Var<br> ScrollMessage:TWMHScroll;<br>begin<br> ScrollMessage.Msg:=WM_HScroll;<br> ScrollMessage.ScrollCode:=SB_LINERIGHT;<br> ScrollMessage.Pos:=200;<br> memo1.Dispatch(ScrollMessage);<br>end;<br>