| 1 | /* | 
|---|
| 2 | * (C) Chris Wohlgemuth 2002-2003 | 
|---|
| 3 | * | 
|---|
| 4 | */ | 
|---|
| 5 | /* | 
|---|
| 6 | * This program is free software; you can redistribute it and/or modify | 
|---|
| 7 | * it under the terms of the GNU General Public License as published by | 
|---|
| 8 | * the Free Software Foundation; either version 2, or (at your option) | 
|---|
| 9 | * any later version. | 
|---|
| 10 | * | 
|---|
| 11 | * This program is distributed in the hope that it will be useful, | 
|---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 14 | * GNU General Public License for more details. | 
|---|
| 15 | * | 
|---|
| 16 | * You should have received a copy of the GNU General Public License | 
|---|
| 17 | * along with this program; see the file COPYING.  If not, write to | 
|---|
| 18 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 
|---|
| 19 | */ | 
|---|
| 20 | /* | 
|---|
| 21 | * If you need another license for your project/product (commercial, | 
|---|
| 22 | * noncommercial, whatever) contact me at | 
|---|
| 23 | * | 
|---|
| 24 | * http://www.os2world.com/cdwriting | 
|---|
| 25 | * http://www.geocities.com/SiliconValley/Sector/5785/ | 
|---|
| 26 | * | 
|---|
| 27 | */ | 
|---|
| 28 |  | 
|---|
| 29 | #define  MAIN_BMP_IDX                     0 | 
|---|
| 30 | #define  CTRLIDX_VOLSLIDER                1 | 
|---|
| 31 | #define  CTRLIDX_VOLSLIDERARM             2 | 
|---|
| 32 | #define  CTRLIDX_VOLSLIDERARMSEL          3 | 
|---|
| 33 |  | 
|---|
| 34 | #define  NUM_CTRL_IDX              4 | 
|---|
| 35 |  | 
|---|
| 36 | /* Slider window class name */ | 
|---|
| 37 | #define SLIDER_CLASS     "CWSLIDER" | 
|---|
| 38 |  | 
|---|
| 39 | /* New slider window class            */ | 
|---|
| 40 | /* Data positions in the window words */ | 
|---|
| 41 | #define SLIDERARMWIDTH   0  /* USHORT */ | 
|---|
| 42 | #define SLIDERARMHEIGHT  2  /* USHORT */ | 
|---|
| 43 | #define PTRPOSINSLARM    4  /* USHORT */ | 
|---|
| 44 | #define SLINCREMENTS     6  /* USHORT */ | 
|---|
| 45 | #define SLIDERCX         8  /* ULONG */ | 
|---|
| 46 | #define SLIDERCY         12 /* ULONG */ | 
|---|
| 47 | #define SLIDERX          16 /* ULONG */ | 
|---|
| 48 | #define SLIDERY          20 /* ULONG */ | 
|---|
| 49 | #define SLIDERARMPOS     24 /* LONG  */ | 
|---|
| 50 | #define SLDRAGGING       28 /* BOOL  */ | 
|---|
| 51 | #define SLADDBYTES       32 /* num additional window bytes for slider */ | 
|---|
| 52 |  | 
|---|
| 53 | typedef struct | 
|---|
| 54 | { | 
|---|
| 55 | INT id; | 
|---|
| 56 | RECTL rclSource; | 
|---|
| 57 | HBITMAP hbmSource; | 
|---|
| 58 | RECTL rclDest; | 
|---|
| 59 | }CONTROLINFO; | 
|---|
| 60 |  | 
|---|
| 61 | typedef struct | 
|---|
| 62 | { | 
|---|
| 63 | BITMAPINFOHEADER bmpInfoHdr; | 
|---|
| 64 | HBITMAP hbm; | 
|---|
| 65 | }LOADEDBITMAP; | 
|---|
| 66 |  | 
|---|
| 67 |  | 
|---|
| 68 |  | 
|---|