home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / slider / slider.h < prev    next >
C/C++ Source or Header  |  1992-06-30  |  2KB  |  40 lines

  1. // slider.h -- Definitions for slider demo
  2.  
  3. //--------------------------------------------------------------
  4. //  Change the following as required for target system
  5. //--------------------------------------------------------------
  6. #define OS220                           // Define target system
  7. //#define OS213                         // OS/2 1.3 + CUA Lib/2
  8.  
  9. #ifdef OS220
  10.     #define MSGID   ULONG               // OS/2 2.0
  11. #else
  12.     #define MSGID   USHORT              // OS/2 1.3
  13.     #include <fclsldp.h>                // CUA Library/2
  14.     #define WC_SLIDER CCL_SLIDER        // Window class
  15. #endif                               
  16.  
  17. //  Defines for dialogs, controls
  18.  
  19. #define IDLG_SETTIME                100 // Set time dialog
  20. #define IDSL_SETTIME_TIME           101
  21.  
  22. #define IDLG_PROGRESS               200 // Progress bar dialog
  23. #define IDSL_PROGRESS_BAR           201
  24.  
  25. #define ID_TIMER                      1 // For WinStartTimer
  26.  
  27. //  Prototypes for useful functions
  28.  
  29. VOID InitSlider (                       // Initialize slider
  30. HWND    hwndDlg,                        // Handle of dialog
  31. ULONG   idSlider,                       // ID of slider control
  32. USHORT  usSizeMultiplier,               // Size multiplier
  33. USHORT  usMinorTickSpacing,             // Minor tick spacing
  34. USHORT  usMinorTickSize,                // Size of minor ticks
  35. USHORT  usMajorTickSpacing,             // Major tick spacing
  36. USHORT  usMajorTickSize,                // Size of major ticks
  37. USHORT  usDetentSpacing,                // Detent spacing
  38. USHORT  usTextSpacing,                  // Text label spacing
  39. PSZ     pszFont);                       // Font for text or NULL
  40.