home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 22
/
CD_ASCQ_22_0695.iso
/
win
/
prg
/
photov11
/
photov.h
< prev
next >
Wrap
Text File
|
1995-01-02
|
4KB
|
132 lines
/***************************************************************
Copyright 1994 Northeast Data Corp. All Rights Reserved
****************************************************************/
/***************************************************************
PhotoV.h
Public definitions for applications that use the PhotoV
control.
- Messages
- Notification codes.
- Control Styles.
****************************************************************/
// The one callable function to force the DLL to load
void FAR PASCAL registerPhotoV(void);
//Max and min scale percentages
#define MAXSCALE 400
#define MINSCALE 3.3
//Number of menu characters in the menus property
#define MAXMENUS 14
//Menu items to enable/disable (offsets into the menu property string)
#define MENUCOPY 0
#define MENUBESTFIT 1
#define MENUFITVERT 2
#define MENUFITHORZ 3
#define MENU1TO1 4
#define MENUINCREASECONTRAST 5
#define MENUDECREASECONTRAST 6
#define MENUZOOMIN 7
#define MENUZOOMOUT 8
#define MENUPRINT 9
#define MENUROTATE0 10
#define MENUROTATE90 11
#define MENUROTATE180 12
#define MENUROTATE270 13
//Control specific styles.
#define CS_TABSTOP 0x0080L
//Base for all messages to and from the VicCtl
#define PHOTOV_BASE WM_USER+2000
//Messages interface for the PhotoV Control
#define ICM_SETFILE PHOTOV_BASE+1
#define ICM_SETCOMMAND PHOTOV_BASE+2
#define ICM_SETBACKCOLOR PHOTOV_BASE+3
#define ICM_SETROTATION PHOTOV_BASE+4
#define ICM_SETSCALE PHOTOV_BASE+5
#define ICM_SETSCALEPERCENT PHOTOV_BASE+6
#define ICM_SETVSCROLLPOS PHOTOV_BASE+7
#define ICM_SETHSCROLLPOS PHOTOV_BASE+8
#define ICM_GETPROPERTY PHOTOV_BASE+9
#define ICM_SETHDCPRN PHOTOV_BASE+10
// wParam values for the ICM_SETCOMMAND message
#define COMMANDZOOMIN 1
#define COMMANDZOOMOUT 2
#define COMMANDINCREASE 3
#define COMMANDDECREASE 4
#define COMMANDPRINT 5
#define COMMANDCOPY 6
#define COMMANDMAX 6
// wParam values for the ICM_SETROTATION message
#define ROTATE0 0
#define ROTATE90 1
#define ROTATE180 2
#define ROTATE270 3
#define ROTATEMAX 3
// wParam values for the ICM_SETBACKCOLOR message
#define COLORBLACK 0
#define COLORWHITE 1
#define COLORGRAY 2
#define COLORMAX 2
// wParam values for the ICM_SETSCALE message
#define SCALEFITVERT 0
#define SCALEFITHORZ 1
#define SCALE1TO1 2
#define SCALEBESTFIT 3
#define SCALEPERCENT 4
#define SCALEMAX 4
// Enumerated values used in the ICM_GETPROPERTY
// wParam to specify
// which property is to be accessed
#define IVAL_ROTATION 1
#define IVAL_SCALE 3
#define IVAL_SCALEPERCENT 4
#define IVAL_FILENAME 5
#define IVAL_SCROLLBARS 6
#define IVAL_BACKCOLOR 7
#define IVAL_VSCROLLPOS 8
#define IVAL_HSCROLLPOS 9
#define IVAL_HDCPRN 10
// Notifications
#define ICN_MENUCHANGE 1
//Error codes
#define VBERR_BASE 30001 // Messages get numbered from here
#define VBERR_FILEOPEN VBERR_BASE
#define VBERR_COMMANDFAILED VBERR_BASE+1
#define VBERR_BACKCOLOR VBERR_BASE+2
#define VBERR_SCROLLBARS VBERR_BASE+3
#define VBERR_ROTATION VBERR_BASE+4
#define VBERR_POLARITY VBERR_BASE+5
#define VBERR_SCALE VBERR_BASE+6
#define VBERR_SCALEPERCENT VBERR_BASE+7
#define VBERR_CONTRAST VBERR_BASE+8
#define VBERR_VSCROLLPOS VBERR_BASE+9
#define VBERR_HSCROLLPOS VBERR_BASE+10
#define VBERR_BADMODE VBERR_BASE+11
#define VBERR_MOREMEM VBERR_BASE+12
#define VBERR_INVALIDCOMMAND VBERR_BASE+13
#define VBERR_PROPERTY VBERR_BASE+14