#if !defined(AFX_MyBmpButton2_H__0DC23CE7_0F12_4F9D_8999_405748E72736__INCLUDED_) #define AFX_MyBmpButton2_H__0DC23CE7_0F12_4F9D_8999_405748E72736__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // MyBmpButton2.h : header file // ///////////////////////////////////////////////////////////////////////////// // MyBmpButton2 window CBitmapButton #include "shockwaveflash.h" //#include "ImageEx.h" class MyBmpButton2 : public CButton { BYTE m_blbottomdown; BOOL m_bPushDown; BOOL m_bSupportLX; DECLARE_DYNAMIC(MyBmpButton2) // Construction public: CString m_childpath; MyBmpButton2(); void SizeToContent(); void ReadBmp(BYTE **pData, CShockwaveFlash *pFlash, CWnd *pParent); void ReadBmpbak(BYTE **pData); BOOL AutoLoad(UINT nID, CWnd* pParent); BOOL LoadBitmaps(UINT lpszBitmapResource,UINT lpszBitmapResourceSel, UINT lpszBitmapResourceFocus,UINT lpszBitmapResourceDisabled); // Attributes public: DWORD m_bmpcount; Image *m_bmp; Image *m_bmpfocus; Image *m_bmpfocused; Image *m_bmpdisable; Image *m_bmpbak; Image *m_bmpfocusbak; Image *m_bmpfocusedbak; Image *m_bmpdisablebak; // ImageEx *m_bmpex; BYTE *m_bmpex; CShockwaveFlash m_flashctrl; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(MyBmpButton2) //}}AFX_VIRTUAL // Implementation public: void ReDrawParent(); void SetLX(); BOOL GetPushDown(); void ChangePic(Image *img1, Image *img2, Image *img3, Image *img4); BOOL IsPushDown(){return m_bPushDown;} void SetPushDown(BOOL bPushDown=1); void DelOrigin(); static void SaveFlash(BYTE *pData, DWORD leng, CString path=_T("") ); void ReadBmp2(BYTE **pData, BYTE **pDes, DWORD &leng); static void ReadBK(BYTE **pData, BYTE **pDes, DWORD &leng); void Deletebak(); void ReDraw(); void SetSel(BOOL bSel); void MyDrawItem(); int GetHeight(CBitmap *bmp); int GetWidth(CBitmap *bmp); virtual ~MyBmpButton2(); // Generated message map functions protected: //{{AFX_MSG(MyBmpButton2) afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnTimer(UINT nIDEvent); //}}AFX_MSG virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS); DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MyBmpButton2_H__0DC23CE7_0F12_4F9D_8999_405748E72736__INCLUDED_)