home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 November
/
VPR9611B.ISO
/
vabasic
/
ntclnt.exe
/
DISK8
/
data.8
/
datab
/
INCLUDE
/
VWSCREEN.HH
< prev
next >
Wrap
Text File
|
1996-07-29
|
4KB
|
99 lines
//--------------------------------------------------------------
// $Source: /rcs/vwrcs/components/intel/vwscreen.hh,v $
// Checked in by: $Author: georgeb $
// $Date: 1996/03/08 21:49:49 $ $Revision: 1.5 $
//--------------------------------------------------------------
// Copyright(c) 1992, Visual Edge Software Ltd.
//
// ALL RIGHTS RESERVED. This notice is intended as a precaution
// against inadvertent publication, and shall not be deemed to
// consitute an acknowledgment that publication has occurred
// nor to imply any waiver of confidentiality. The year included
// in the notice is the year of the creation of the work.
//--------------------------------------------------------------
// DESCRIPTION:
// This file contains the class declaration for the
// VwScreen class. It maintains the application
// screen object for any program build using the Viper
// components.
//--------------------------------------------------------------
#ifndef VWSCREEN_HH
#define VWSCREEN_HH
#include <vwglobal.hh>
#include <vwguicmp.hh>
class VwScreen {
friend class VwApplication;
public:
/*-------------------------------------------------
* Destructor
*------------------------------------------------*/
virtual VOPERDECL ~VwScreen ();
/*-------------------------------------------------
* Public Methods
*------------------------------------------------*/
VMETHODDECL(VwGuiComponent*) ActiveControl ();
VMETHODDECL(VwStatus) PutActiveControl (VwGuiComponent *);
VMETHODDECL(VwGuiComponent*) ActiveForm ();
VMETHODDECL(VwStatus) PutActiveForm (VwGuiComponent *);
VMETHODDECL(VwInt) FontCount ();
VMETHODDECL(String) Fonts (VwInt);
VMETHODDECL(VwMousePointer) MousePointer ();
VMETHODDECL(VwStatus) PutMousePointer (VwMousePointer);
static VMETHODDECL(VwBool) IsMonoDisplay();
static VMETHODDECL(VwSingle) Height ();
static VMETHODDECL(VwSingle) Width ();
static VMETHODDECL(VwSingle) TwipsPerPixelX ();
static VMETHODDECL(VwSingle) TwipsPerPixelY ();
static VMETHODDECL(VwSingle) MillimeterVertScale();
static VMETHODDECL(VwSingle) MillimeterHorizScale();
VMETHODDECL(VwApplication *) Application();
protected:
/*
* protected constructor friends can only instantiate class
*/
VOPERDECL VwScreen (VwApplication*);
private:
void AddFont(char*);
// friend int CALLBACK EnumFontFamProc(const LOGFONT* plf,
// const TEXTMETRIC*, int, LPARAM clientData);
VwApplication *itsApplication;
VwGuiComponent *itsActiveControl;
VwGuiComponent *itsActiveForm;
VwMousePointer itsMousePointer;
VwInt itsFontCount;
VwInt itsFontArraySize;
String* itsFonts;
static VwBool isMonoDisplay;
static VwSingle itsHeight;
static VwSingle itsWidth;
static VwSingle itsTwipsPerPixelX;
static VwSingle itsTwipsPerPixelY;
static VwSingle itsMillimeterHorzScale;
static VwSingle itsMillimeterVertScale;
};
#endif