Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define values for WinAPI functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00526989
Message ID:
00527334
Vues:
32
Hi!

>Vlad,
>
>>>Try to find Windows.pas and related files (Delphi 5 installation) or Windows.h (C++).
>
>Well, I don't have Delphi and my copy of Windows.h doesn't have any of the color defines. The thing that's frustrating about this is that these are SYSTEM values! Open architecture doesn't do much good without documentation.

With Delphi there are several modules, not onlu windows.pas. I guess the same is with C++ - windows.h is only basics.


>
>>>I can find values you want, just send me Email. Or zip and send you constants lists...
>
>Thanks for the offer. I'm looking for anything starting with "COLOR_".

Below is a list of what I have found
windows.pas (Win32 API Interface Unit):
  { color enabledisable for color printers }
  DMCOLOR_MONOCHROME = 1;
  DMCOLOR_COLOR = 2;


  { Min and max for Contrast, Brightness, Colorfulness, RedGreenTint }
  COLOR_ADJ_MIN = -100;
  COLOR_ADJ_MAX = 100;

  { Color Types }
  CTLCOLOR_MSGBOX = 0;
  CTLCOLOR_EDIT = 1;
  CTLCOLOR_LISTBOX = 2;
  CTLCOLOR_BTN = 3;
  CTLCOLOR_DLG = 4;
  CTLCOLOR_SCROLLBAR = 5;
  CTLCOLOR_STATIC = 6;
  CTLCOLOR_MAX = 7;

  COLOR_SCROLLBAR = 0;
  COLOR_BACKGROUND = 1;
  COLOR_ACTIVECAPTION = 2;
  COLOR_INACTIVECAPTION = 3;
  COLOR_MENU = 4;
  COLOR_WINDOW = 5;
  COLOR_WINDOWFRAME = 6;
  COLOR_MENUTEXT = 7;
  COLOR_WINDOWTEXT = 8;
  COLOR_CAPTIONTEXT = 9;
  COLOR_ACTIVEBORDER = 10;
  COLOR_INACTIVEBORDER = 11;
  COLOR_APPWORKSPACE = 12;
  COLOR_HIGHLIGHT = 13;
  COLOR_HIGHLIGHTTEXT = 14;
  COLOR_BTNFACE = 15;
  COLOR_BTNSHADOW = $10;
  COLOR_GRAYTEXT = 17;
  COLOR_BTNTEXT = 18;
  COLOR_INACTIVECAPTIONTEXT = 19;
  COLOR_BTNHIGHLIGHT = 20;

  COLOR_3DDKSHADOW = 21;
  COLOR_3DLIGHT = 22;
  COLOR_INFOTEXT = 23;
  COLOR_INFOBK = 24;
  COLOR_HOTLIGHT = 26;
  COLOR_GRADIENTACTIVECAPTION = 27;
  COLOR_GRADIENTINACTIVECAPTION = 28;
  COLOR_ENDCOLORS = COLOR_GRADIENTINACTIVECAPTION;

  COLOR_DESKTOP = COLOR_BACKGROUND;
  COLOR_3DFACE = COLOR_BTNFACE;
  COLOR_3DSHADOW = COLOR_BTNSHADOW;
  COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT;
  COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT;
  COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT;
penwin.pas (Win32 Pen API Interface Unit)
{ IME colors for bedit }
  COLOR_BE_INPUT                 = 0;
  COLOR_BE_INPUT_TEXT            = 1;
  COLOR_BE_CONVERT               = 2;
  COLOR_BE_CONVERT_TEXT          = 3;
  COLOR_BE_CONVERTED             = 4;
  COLOR_BE_CONVERTED_TEXT        = 5;
  COLOR_BE_UNCONVERT             = 6;
  COLOR_BE_UNCONVERT_TEXT        = 7;
  COLOR_BE_CURSOR                = 8;
  COLOR_BE_CURSOR_TEXT           = 9;
  COLOR_BE_PRECONVERT            = 10;
  COLOR_BE_PRECONVERT_TEXT       = 11;
  MAXIMECOLORS                   = 12;
Do you need also constants from opengl.pas (OpenGL Interface unit)?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform