home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / _bbs3 / f1530.zip / CLRCTRL.H < prev    next >
Text File  |  1991-08-25  |  2KB  |  36 lines

  1. /*
  2. Public header file for color selector custom control facility
  3.  
  4. (C) Scott Gourley/Clickon Software, 1991.
  5. */
  6.  
  7. /* defining information about the color selector facility */
  8.  
  9. #define CLRCTRL_DLLNAME "CLRCTRL.DLL"
  10.  
  11. /* prototypes for control-specific functions */
  12.  
  13. LONG FAR PASCAL ClrCtrlWndProc
  14.     (HWND hWnd, WORD wMsg, WORD wParam, LONG lParam);
  15. BOOL FAR PASCAL ClrCtrlRegisterClass (HANDLE hInstance);
  16.  
  17. /* specialized messages for the color selector custom control               */
  18.  
  19. /* Message           Description       Returns       wParam     lParam      */
  20. /* ------------------------------------------------------------------------ */
  21. /*                                                                          */
  22. /* CLRM_SETCURCOLOR  Set the current   CB_ERR if     Not used.  The RGB     */
  23. /*                   selected item of  the color                value of    */
  24. /*                   the combobox to   does not                 the color   */
  25. /*                   the passed color, exist in the             to be       */
  26. /*                   if available.     combobox.                selected.   */
  27. /*                                                                          */
  28. /* CLRM_GETCURCOLOR  Get the color of  The color of  Not used.  Not used.   */
  29. /*                   the current       the current                          */
  30. /*                   selected item in  selected                             */
  31. /*                   the combobox.     item, or                             */
  32. /*                                     CB_ERR.                              */
  33.  
  34. #define CLRM_SETCURCOLOR    (WM_USER + 64)
  35. #define CLRM_GETCURCOLOR    (WM_USER + 65)
  36.