home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / plgsk401.sit / PluginSDK 4.01a / Examples / CharFlipper / Source / CCharFlipper_Win.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-09  |  1.2 KB  |  45 lines

  1. // CCharFlipper_Win
  2.  
  3.  
  4. #include "StdAfx.h"
  5. #include "CCharFlipper.h"
  6. #include "WinFlipView.h"
  7.  
  8. //------------------------------------------------------------------------------------
  9. // CCharFlipper::Handle_Event
  10. //------------------------------------------------------------------------------------
  11. NPBool 
  12. CCharFlipper::Handle_Event( void* event)
  13. {
  14.     return FALSE;
  15. }
  16.  
  17.  
  18.  
  19. //------------------------------------------------------------------------------------
  20. // CCharFlipper::CreatePluginView
  21. //------------------------------------------------------------------------------------
  22. CPluginView*
  23. CCharFlipper::CreatePluginView( )
  24. {
  25.     return new CWinFlipView( this );
  26. }
  27.  
  28. //------------------------------------------------------------------------------------
  29. // CCharFlipper::PrintEmbeded
  30. //------------------------------------------------------------------------------------
  31. void
  32. CCharFlipper::PrintEmbeded( NPEmbedPrint& embedPrintInfo )
  33. {
  34.  
  35. }
  36.  
  37. unsigned long 
  38. CCharFlipper::GetNormalSysTime( )
  39. {
  40.     unsigned long winTime = GetTickCount();
  41.             // turn the windows time into 60ths of a second
  42.     double normalTime = ( winTime / 1000.0 ) * 60.0;
  43.     return normalTime;
  44. }
  45.