home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1995 March / PCD_395.iso / starview / winblci / german / sysdep.hx_ / SYSDEP.HXX
Encoding:
Text File  |  1994-10-25  |  2.4 KB  |  75 lines

  1. /*************************************************************************
  2. * SYSDEP.HXX
  3. * Tue Oct 25 09:46:50 1994
  4. * (c) 1992-1994 STAR DIVISION
  5. *************************************************************************/
  6. #ifndef _SVWIN_H
  7. #include <svwin.h>
  8. #endif
  9. #ifdef __BORLANDC__
  10. #define class   class _export
  11. #endif
  12.  
  13. #ifndef _SYSDEP_HXX
  14. #define _SYSDEP_HXX
  15.  
  16. #ifndef _SVWIN_H
  17. #endif
  18.  
  19. class OutputDevice;
  20. class Window;
  21. class Menu;
  22. class Bitmap;
  23. class Icon;
  24. class Pointer;
  25. class GDIMetaFile;
  26. class Size;
  27. class Palette;
  28.  
  29. #define SVFEATURE_MESSBOXBEEP       ((int)0x00000001)
  30.  
  31. typedef int (*SVHOOK) ( HWND hWnd, UINT wMsg,
  32.                         WPARAM wParam, LPARAM lParam, LRESULT& rRet );
  33.  
  34. class Sysdepen
  35. {
  36. public:
  37.     static HDC          GethDC( const OutputDevice& rOutDev );
  38.     static HWND         GethWnd( const Window& rWindow );
  39.     static HMENU        GethMenu( const Menu& rMenu );
  40.     static HBITMAP      GethBitmap( const Bitmap& rBitmap );
  41.     static int          IsDIB( const Bitmap& rBitmap );
  42.     static HICON        GethIcon( const Icon& rIcon );
  43.     static HCURSOR      GethCursor( const Pointer& rPointer );
  44.     static HPALETTE     GethPalette( const Palette& rPalette );
  45.  
  46.     static void         SethWnd( Window& rWindow, HWND hWnd );
  47.     static void         SethBitmap( Bitmap& rBitmap, HBITMAP hBitmap,
  48.                                     int bDIB = 0 );
  49.     static void         SethIcon( Icon& rIcon, HICON hIcon,
  50.                                   int bDestroy = FALSE );
  51.     static void         SethCursor( Pointer& rPointer, HCURSOR hCursor,
  52.                                     int bDestroy = FALSE );
  53.  
  54.     static HINSTANCE    GethInst();
  55.     static HINSTANCE    GethPrevInst();
  56.     static HWND         GethMDIClient();
  57.  
  58.     static void         SethMetaFile( GDIMetaFile& rGDIMetaFile, HMETAFILE hMF );
  59.     static HMETAFILE    GethMetaFile( const GDIMetaFile& rGDIMetaFile );
  60.     static void         ConvertToSysMetaFile( GDIMetaFile& rGDIMetaFile );
  61.     static void         ConvertToSVMetaFile( GDIMetaFile& rGDIMetaFile );
  62.     static int          IsSysMetaFile( const GDIMetaFile& rGDIMetaFile );
  63.  
  64.     static void         SetSVFeatures( int nFeatures );
  65.     static int          GetSVFeatures();
  66.  
  67.     static SVHOOK       ChangeHook( SVHOOK pHook = 0 );
  68.     static SVHOOK       GetHook();
  69. };
  70.  
  71. #endif 
  72. #ifdef __BORLANDC__
  73. #undef class
  74. #endif
  75.