38.9.4.4 Message handling control

Most of WinGP SDK API functions handles Windows messages within the functions if the process takes a while. You can specify if you use this Windows message process or control this process.

If the control is used, Windows messages are accumulated in the message queue and not processed during the function process.

As a result, it can prevent from double calling of functions by clicking the icon during function process.

However, in this case, please be careful that all Windows message processes are controlled, not only the message "the icon is clicked" but also important messages such as the timer and redrawing window screen will not be processed.

You can specify whether to process or control the process for each handle of WinGP SDK. The default is set to process.

Function Name

INT EasySetWaitType(DWORD dwMode);

Argument

dwMode: (In)Process messages if 1 is specified. Control message process if 2 is specified.

Return value (NULL)

Normal End: 0

Problem: Error code