short SetBusyWindowMode(short Mode)
Description
This function determines whether QMF for Windows displays the busy window. The busy window is useful to provide feedback to the user and to enable the user to cancel a pending database action. Your changes take effect the next time QMF for Windows performs an operation that causes the busy window to display or hide.
Parameters
Name | Description |
---|---|
Mode | Specifies when QMF for Windows displays the busy window. The following options are available: |
|
|
0 (RSM_NEVER) | The window does not display. This is the default. |
1 (RSM_WHENBUSY) | The window displays when QMF for Windows is busy communicating with the database. QMF for Windows displays this window as appropriate. |
2 (RSM_CLIENTCONTROLLED) | The window displays after you call ShowBusyWindow(TRUE), and until you call ShowBusyWindow(FALSE). The client determines when the window displays. |
Return Value
The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString() or GetLastErrorType() to get additional error information.
Related Tasks