Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » 嵌入式 SQL API 参考

 

ULIsSynchronizeMessage 函数

检查消息,看它是否是来自 ActiveSync 的 MobiLink 提供程序的同步消息,以便可以调用处理这种消息的代码。完成对同步消息的处理后,应调用 ULSignalSyncIsComplete 函数。

语法
ul_bool ULIsSynchronizeMessage(
ul_u_long uMsg
);
注释

应将对此函数的调用包括在应用程序的 WindowProc 函数中。

适用于用于 ActiveSync 的 Windows Mobile。

示例

下面的代码片段说明如何使用 ULIsSynchronizeMessage 处理同步消息。

LRESULT CALLBACK WindowProc( HWND hwnd,
         UINT uMsg,
         WPARAM wParam,
         LPARAM lParam )
{
  if( ULIsSynchronizeMessage( uMsg ) ) {
    // execute synchronization code
    if( wParam == 1 ) DestroyWindow( hWnd );
    return 0;
  }

  switch( uMsg ) {

  // code to handle other windows messages

  default:
    return DefWindowProc( hwnd, uMsg, wParam, lParam );
  }
  return 0;
}
另请参见