home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRSAMPL.H < prev    next >
Text File  |  1993-10-22  |  1KB  |  49 lines

  1. /******************************************************************************
  2.  * MODULE NAME: ClrSampl.H
  3.  *
  4.  * DESCRIPTION:
  5.  *     Include file for COLOR_SAMPLE_CLASS window class
  6. \****************************************************************************/
  7.  
  8. /* ----- Window class name and registration function ----- */
  9.  
  10. #define COLOR_SAMPLE_CLASS "ColorSampleControlClass"
  11.  
  12. BOOL EXPENTRY RegisterColorSampleClass(VOID);
  13.  
  14. /* ----- New messages supported by this control ----- */
  15.  
  16. #define CSM_SETRGBCOLOR            WM_USER    + 0x100    
  17. /* ULONG mp1:  RGB color value to be displayed
  18.  * VOID  mp2:  not used
  19.  * RETURNS:       TRUE if the color was accepted, FALSE otherwise.
  20.  */
  21.  
  22. #define CSM_QUERYRGBCOLOR        WM_USER    + 0x101
  23. /* ULONG mp1:  not used
  24.  * VOID  mp2:  not used
  25.  * RETURNS:       RGB color value currently being displayed.
  26.  */
  27.  
  28. #define CSM_EDITRGBCOLOR        WM_USER    + 0x102
  29. /* ULONG mp1:  not used
  30.  * VOID  mp2:  not used
  31.  * RETURNS:       Cause this color sample control to go into editing mode.
  32.  */
  33.  
  34. /* ----- Private functions used by our window class ----- */
  35.  
  36. MRESULT EXPENTRY ClrSampleWndProc(
  37.     HWND    hwnd,
  38.     ULONG    msg,
  39.     MPARAM    mp1,
  40.     MPARAM    mp2);
  41.  
  42. VOID MyDrawBorder(
  43.     HPS        hps,
  44.     RECTL    *prcl,
  45.     ULONG    TopLeftColor,
  46.     ULONG    BottomRightColor,
  47.     LONG    cxBorder,
  48.     LONG    cyBorder);
  49.