home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
CENVIW9.ZIP
/
WINUTIL.LIB
< prev
Wrap
Text File
|
1994-03-08
|
2KB
|
51 lines
// WinUtil.lib - Cmm code wrapper for various useful Windows functions.
// ver.1 This is by no means an exhaustive collection, but simply
// examples. You may #include this file in your CMM source
// or you may simply copy the routines you like into your
// code. The routines in this file are:
// GetSystemMetrics() - Width and height of various display elements
GetSystemMetrics(Index)
// return this system metric
{
#define SM_CXSCREEN 0 // screen width
#define SM_CYSCREEN 1 // screen height
#define SM_CXVSCROLL 2
#define SM_CYHSCROLL 3
#define SM_CYCAPTION 4
#define SM_CXBORDER 5
#define SM_CYBORDER 6
#define SM_CXDLGFRAME 7
#define SM_CYDLGFRAME 8
#define SM_CYVTHUMB 9
#define SM_CXHTHUMB 10
#define SM_CXICON 11
#define SM_CYICON 12
#define SM_CXCURSOR 13
#define SM_CYCURSOR 14
#define SM_CYMENU 15
#define SM_CXFULLSCREEN 16
#define SM_CYFULLSCREEN 17
#define SM_CYKANJIWINDOW 18
#define SM_MOUSEPRESENT 19
#define SM_CYVSCROLL 20
#define SM_CXHSCROLL 21
#define SM_DEBUG 22
#define SM_SWAPBUTTON 23
#define SM_RESERVED1 24
#define SM_RESERVED2 25
#define SM_RESERVED3 26
#define SM_RESERVED4 27
#define SM_CXMIN 28
#define SM_CYMIN 29
#define SM_CXSIZE 30
#define SM_CYSIZE 31
#define SM_CXFRAME 32
#define SM_CYFRAME 33
#define SM_CXMINTRACK 34
#define SM_CYMINTRACK 35
#define SM_CMETRICS 36
return( DynamicLink("USER","GETSYSTEMMETRICS",SWORD16,PASCAL,Index) );
}