DXIMDBar.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DXIMDBar.h
- #ifndef _DXIMDBAR__H
- #define _DXIMDBAR__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DXSpriteButton.h"
- class CDDTextSurface;
- class CDXGUIManager;
- class CIMDManager;
- class CDXIMDBar : public CDXSpriteButton
- {
- public:
- CDXIMDBar(void);
- virtual ~CDXIMDBar();
- public:
- bool Create(CDXGUIManager* pGUIManager,
- LPCTSTR lpszIMDFontName,
- int nEditFontSize,
- LPCRECT lprcBounds,
- CDXDialog* pParent,
- CDSBuffer* pSoundFocused,
- CDDDevice* pDDDevice,
- LPCTSTR lpszBMPName,
- CPackFileManager* pPackFileManager = NULL,
- bool bTrans = false,
- int nHoriBlocks = DXBUTTON_NUMBER_STATE);
- public:
- virtual void OnLButtonDown(int nMouseX, int nMouseY);
- virtual bool OnKeyDown(CDIKeyState* pKeyState);
- virtual void Draw(CDDSurface* pDestSurface);
- protected:
- CIMDManager* GetIMDManager(void) const;
- protected:
- CFont m_fontIMD;
- CDDTextSurface* m_pTextInputMethodName;
- CDDTextSurface* m_pTextCodeBuf;
- CDDTextSurface* m_pTextDupBuf;
- CDXGUIManager* m_pGUIManager;
- };
- #include "DXIMDBar.inl"
- #endif // _DXIMDBAR__H