DXIMDBar.h
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: DXIMDBar.h
  3. #ifndef _DXIMDBAR__H
  4. #define _DXIMDBAR__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. #include "DXSpriteButton.h"
  9. class CDDTextSurface;
  10. class CDXGUIManager;
  11. class CIMDManager;
  12. class CDXIMDBar : public CDXSpriteButton
  13. {
  14. public:
  15. CDXIMDBar(void);
  16. virtual ~CDXIMDBar();
  17. public:
  18. bool Create(CDXGUIManager*  pGUIManager,
  19. LPCTSTR  lpszIMDFontName,
  20. int  nEditFontSize,
  21. LPCRECT  lprcBounds,
  22. CDXDialog*  pParent,
  23. CDSBuffer*  pSoundFocused,
  24. CDDDevice*  pDDDevice,
  25. LPCTSTR  lpszBMPName,
  26. CPackFileManager*  pPackFileManager = NULL,
  27. bool  bTrans = false,
  28. int  nHoriBlocks = DXBUTTON_NUMBER_STATE);
  29. public:
  30. virtual void OnLButtonDown(int  nMouseX, int  nMouseY);
  31. virtual bool OnKeyDown(CDIKeyState*  pKeyState);
  32. virtual void Draw(CDDSurface*  pDestSurface);
  33. protected:
  34. CIMDManager* GetIMDManager(void) const;
  35. protected:
  36. CFont m_fontIMD;
  37. CDDTextSurface* m_pTextInputMethodName;
  38. CDDTextSurface* m_pTextCodeBuf;
  39. CDDTextSurface* m_pTextDupBuf;
  40. CDXGUIManager* m_pGUIManager;
  41. };
  42. #include "DXIMDBar.inl"
  43. #endif // _DXIMDBAR__H