46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XShowExtend.cpp
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 类的定义
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "XShowExtend.h"
|
|
#include "XPushVar.h"
|
|
#include "XGlobalFunc.h"
|
|
|
|
XShowExtend::XShowExtend(PickSet &ss)
|
|
: restoreScr(0)
|
|
{
|
|
XPoint ptLow, ptUp;
|
|
ss.GetExtend(ptLow, ptUp);
|
|
|
|
AT_ScrCorner(lowCorner, upCorner);
|
|
ptLow.z = ptUp.z = lowCorner.z;
|
|
if (Max(upCorner, ptUp) != upCorner || Min(lowCorner, ptLow) != lowCorner)
|
|
{
|
|
ptUp.x += 10;
|
|
ptUp.y += 10;
|
|
ptLow.x -= 10;
|
|
ptLow.y -= 10;
|
|
|
|
XPushVar<int> osmode(_T("OSMODE"), 0);
|
|
arxZoom(ptLow, ptUp);
|
|
|
|
restoreScr = 1;
|
|
}
|
|
}
|
|
|
|
XShowExtend::~XShowExtend()
|
|
{
|
|
if (restoreScr)
|
|
{
|
|
XPushVar<int> osmode(_T("OSMODE"), 0);
|
|
arxZoom(lowCorner, upCorner);
|
|
}
|
|
}
|