Ignore:
Timestamp:
Jun 18, 2009, 8:55:46 PM (16 years ago)
Author:
RBRi
Message:

warning fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hlpmgr/helpinstance.c

    r26 r360  
    1717  if ( ! pHelpInstance -> FViewerStarted )
    1818  {
    19     // get focus frame 
     19    // get focus frame
    2020    FocusFrame = GetTopLevelWindow( WinQueryFocus( HWND_DESKTOP ) );
    2121    // associate viewer with that.
     
    7777                   mp2 );
    7878  if ( ok )
    79     LogEvent( "  Posted OK" ); 
     79    LogEvent( "  Posted OK" );
    8080  else
    8181    LogEvent( "  WinPostMsg failed" );
     
    8686//--------------------------------------------------------------------------------
    8787void PostQueuedViewerMessages( TPHelpInstance pHelpInstance )
    88 { 
     88{
    8989  int i;
    9090  TQueuedViewerMessage ViewerMessage;
     
    119119//--------------------------------------------------------------------------------
    120120
    121 // Add the given window to the list of associated 
     121// Add the given window to the list of associated
    122122// windows for this help instance
    123123//--------------------------------------------------------------------------------
     
    129129            pHelpInstance );
    130130
    131   if ( IsWindowAssociated( pHelpInstance, hwnd ) ) 
    132   { 
     131  if ( IsWindowAssociated( pHelpInstance, hwnd ) )
     132  {
    133133    LogEvent( "Already associated" );
    134134    return;
     
    151151
    152152  // see if it will fit.
    153   if (    pHelpInstance -> FNumApplicationWindows 
     153  if (    pHelpInstance -> FNumApplicationWindows
    154154       >= pHelpInstance -> FMaxApplicationWindows )
    155155  {
     
    160160    else
    161161      // double space
    162       pHelpInstance -> FMaxApplicationWindows *= 2; 
     162      pHelpInstance -> FMaxApplicationWindows *= 2;
    163163
    164164    LogEvent( "AssociateWIndow: allocating list space to %d",
     
    166166
    167167    // reallocate memory.
    168     pHelpInstance -> FApplicationWindows 
    169       = (HWND*) realloc( pHelpInstance -> FApplicationWindows, 
    170                          pHelpInstance -> FMaxApplicationWindows 
     168    pHelpInstance -> FApplicationWindows
     169      = (HWND*) realloc( pHelpInstance -> FApplicationWindows,
     170                         pHelpInstance -> FMaxApplicationWindows
    171171                         * sizeof( HWND ) );
    172172  }
    173  
     173
    174174  pHelpInstance ->
    175175    FApplicationWindows[ pHelpInstance -> FNumApplicationWindows ]
     
    180180  LogEvent( "AssociateWindow: Now have %d windows associated",
    181181            pHelpInstance -> FNumApplicationWindows );
    182 } 
    183 
    184 // Removes the given window from the list of associated 
     182}
     183
     184// Removes the given window from the list of associated
    185185// windows for this help instance (if present)
    186186//--------------------------------------------------------------------------------
     
    199199      j = i;
    200200      while( j < pHelpInstance -> FNumApplicationWindows - 1 )
    201       { 
     201      {
    202202        pHelpInstance -> FApplicationWindows[ j ]
    203203          = pHelpInstance -> FApplicationWindows[ j + 1 ];
     
    245245  ulMagicNumber = WinQueryWindowULong( hwnd, QWL_HELPINSTANCEMAGICNUMBER );
    246246
    247   if ( ulMagicNumber != HELPINSTANCEMAGICNUMBER ) 
     247  if ( ulMagicNumber != HELPINSTANCEMAGICNUMBER )
    248248    return NULL;
    249249
     
    263263    // free copy of resource
    264264    FreeHelpTable( & ( pHelpInstance -> pHelpTable ) );
    265 }   
     265}
    266266
    267267//--------------------------------------------------------------------------------
     
    276276  pHelpInstance -> FNumApplicationWindows = 0;
    277277  pHelpInstance -> FMaxApplicationWindows = 0;
    278   pHelpInstance -> FApplicationWindows = NULL; 
    279    
    280   pHelpInstance -> FActiveWindow = NULLHANDLE; 
     278  pHelpInstance -> FApplicationWindows = NULL;
     279
     280  pHelpInstance -> FActiveWindow = NULLHANDLE;
    281281
    282282  return pHelpInstance;
    283283}
    284 
     284
Note: See TracChangeset for help on using the changeset viewer.