相当于你按了一下Tab键。就是将焦点切换到下一个控件。

解决方案 »

  1.   

    你能说明白一点吗?Perform( WM_NEXTDLGCTL,0,0)
      

  2.   

    Delphi中的帮助:The WM_NEXTDLGCTL message is sent to a dialog box procedure to set the keyboard focus to a different control in the dialog box. WM_NEXTDLGCTL  
    wCtlFocus = wParam;              // identifies control for focus 
    fHandle = (BOOL) LOWORD(lParam); // wParam handle flag 
     ParameterswCtlFocusValue of wParam. If the fHandle parameter is TRUE, the wCtlFocus parameter identifies the control that receives the focus. If fHandle is FALSE, wCtlFocus is a flag that indicates whether the next or previous control with the WS_TABSTOP style receives the focus. If wCtlFocus is zero, the next control receives the focus; otherwise, the previous control with the WS_TABSTOP style receives the focus. fHandleValue of lParam. Contains a flag that indicates how Windows uses the wCtlFocus parameter. If the fHandle parameter is TRUE, wCtlFocus is a handle associated with the control that receives the focus; otherwise, wCtlFocus is a flag that indicates whether the next or previous control with the WS_TABSTOP style receives the focus.  Return ValuesAn application should return zero if it processes this message. ResThe effect of this message differs from that of the SetFocus function because WM_NEXTDLGCTL modifies the border around the control. 
    Do not use the SendMessage function to send a WM_NEXTDLGCTL message if your application will concurrently process other messages that set the focus. Use the PostMessage function instead. 
      

  3.   

    你用过sybase数据库吗?
    我公司的软件出了问题,执行文件没有办法了,不知道是什么原因。
    具体情况是这样的:
    两台电脑,一台服务器安装了delphi5.0和sybase数据库。执行文件在服务器上能用。
    另一台安装了delphi5.0和sybase。执行文件不能用。运行提示是没有找到库。
    请问应该怎么做呢