Collection Sommaire Index Fonction ULInitSynchInfo Next PDF

UltraLite® - Programmation C et C++
  Informations de référence sur l'API Embedded SQL
Fonction ULIsSynchronizeMessage


Cible

Windows CE pour ActiveSync

Description

Vérifie si un message constitue un message de synchronisation du fournisseur MobiLink pour ActiveSync, pour que le code de gestion d'un tel message puisse être appelé.

Prototype

ul_bool ULIsSynchronizeMessage( ul_u_long uMsg );

Utilisation

Vous devez inclure cette fonction dans la fonction WindowProc de l'application.

Exemple

Le code suivant illustre l'utilisation d'ULIsSynchronizeMessage pour gérer un message de synchronisation :

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;
}
Voir aussi

Collection Sommaire Index Fonction ULInitSynchInfo Next PDF