怎样实现自动滚动呢?
小弟我写了一个单文档的程序。子对话框非常大。所以它的右边就有了个滚动条。因为是数据录入。在子对话框上有很多 EDITBOX,所以希望每跳转一个 EDITBOX,就发送一条滚动消息。但是那个滚动条并不动。这是怎么回事啊?谢谢!我的代码如下:
void CVCCView::OnKillfocusEdit1()
{
// TODO: Add your control notification handler code here
HWND m_hWnd;
m_hWnd = ::FindWindow(NULL,LPCTSTR("无标题 - VCC"));
if(m_hWnd != NULL)
{
BOOL bPostSuccess;
bPostSuccess = ::PostMessage(m_hWnd, WM_VSCROLL, 0, 0);//SendMessage
if(bPostSuccess == 0)
{
AfxMessageBox("Error!");
}
}
else
AfxMessageBox("?");
}