DXRectDialog.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DXRectDialog.h
- #ifndef _DXRECTDIALOG__H
- #define _DXRECTDIALOG__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DXDialog.h"
- class CDXRectDialog : public CDXDialog
- {
- public:
- CDXRectDialog(void);
- virtual ~CDXRectDialog();
- public:
- bool Create(LPRECT lprcBounds,
- CDXGUIManager* pGUIManager,
- int nCursorIndex,
- DXDIALOG_TYPE DialogType = DXDIALOG_MODAL);
- virtual bool IsPointIn(int nX, int nY);
- virtual void ClientToScreen(int& nX, int& nY);
- virtual void ClientToScreen(LPRECT lprcClient, RECT& rcScreen);
- virtual void ScreenToClient(int& nX, int& nY);
- virtual void Move(int nOffsetX, int nOffsetY);
- public:
- void AdjustOffset(int& nOffsetX, int& nOffsetY);
- protected:
- CRect m_rcBounds;
- };
- #endif // _DXRECTDIALOG__H