home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / CENVIW9.ZIP / WINUTIL.LIB < prev   
Text File  |  1994-03-08  |  2KB  |  51 lines

  1. // WinUtil.lib - Cmm code wrapper for various useful Windows functions.
  2. // ver.1         This is by no means an exhaustive collection, but simply
  3. //               examples.  You may #include this file in your CMM source
  4. //               or you may simply copy the routines you like into your
  5. //               code.  The routines in this file are:
  6. // GetSystemMetrics() - Width and height of various display elements
  7.  
  8. GetSystemMetrics(Index)
  9.    // return this system metric
  10. {
  11.    #define SM_CXSCREEN         0    // screen width
  12.    #define SM_CYSCREEN         1    // screen height
  13.    #define SM_CXVSCROLL        2
  14.    #define SM_CYHSCROLL        3
  15.    #define SM_CYCAPTION        4
  16.    #define SM_CXBORDER         5
  17.    #define SM_CYBORDER         6
  18.    #define SM_CXDLGFRAME       7
  19.    #define SM_CYDLGFRAME       8
  20.    #define SM_CYVTHUMB         9
  21.    #define SM_CXHTHUMB         10
  22.    #define SM_CXICON           11
  23.    #define SM_CYICON           12
  24.    #define SM_CXCURSOR         13
  25.    #define SM_CYCURSOR         14
  26.    #define SM_CYMENU           15
  27.    #define SM_CXFULLSCREEN     16
  28.    #define SM_CYFULLSCREEN     17
  29.    #define SM_CYKANJIWINDOW    18
  30.    #define SM_MOUSEPRESENT     19
  31.    #define SM_CYVSCROLL        20
  32.    #define SM_CXHSCROLL        21
  33.    #define SM_DEBUG            22
  34.    #define SM_SWAPBUTTON       23
  35.    #define SM_RESERVED1        24
  36.    #define SM_RESERVED2        25
  37.    #define SM_RESERVED3        26
  38.    #define SM_RESERVED4        27
  39.    #define SM_CXMIN            28
  40.    #define SM_CYMIN            29
  41.    #define SM_CXSIZE           30
  42.    #define SM_CYSIZE           31
  43.    #define SM_CXFRAME          32
  44.    #define SM_CYFRAME          33
  45.    #define SM_CXMINTRACK       34
  46.    #define SM_CYMINTRACK       35
  47.    #define SM_CMETRICS         36
  48.    return( DynamicLink("USER","GETSYSTEMMETRICS",SWORD16,PASCAL,Index) );
  49. }
  50.  
  51.