ul_bool ULIsSynchronizeMessage( ul_u_long uMsg );
在 Windows CE 上,该函数检查消息,看它是否是来自 ActiveSync 的 MobiLink 提供程序的同步消息,以便可以调用处理这种消息的代码。
该函数应包括在应用程序的 WindowProc 函数中。
下面的代码片段说明如何使用 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;
}SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。