MsnEdit.h
资源名称:MSN.rar [点击查看]
上传用户:seeker_wen
上传日期:2016-05-23
资源大小:2084k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #pragma once
- #define WM_USER_EDITBUTTON_CLICKED (WM_USER + 1000)
- // CMsnEdit
- class CMsnEdit : public CEdit
- {
- DECLARE_DYNAMIC(CMsnEdit)
- protected:
- CString m_bmpEmptyEdit;
- CString m_bmpFilledEdit;
- CSize m_sizeEmptyBitmap;
- CSize m_sizeFilledBitmap;
- CRect m_rcEditArea;
- CRect m_rcButtonArea;
- BOOL m_bButtonExistsAlways;
- UINT m_iButtonClickedMessageId;
- public:
- BOOL SetBitmaps(CString EmptyEdit, CString FilledEdit);
- void SetButtonArea(CRect rcButtonArea);
- BOOL SetEditArea(CRect rcEditArea);
- void SetButtonClickedMessageId(UINT iButtonClickedMessageId);
- void SetButtonExistsAlways(BOOL bButtonExistsAlways);
- CMsnEdit();
- virtual ~CMsnEdit();
- virtual void PreSubclassWindow( );
- virtual BOOL PreTranslateMessage( MSG* pMsg );
- protected:
- void ResizeWindow();
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg LRESULT OnSetFont(WPARAM wParam, LPARAM lParam); // Maps to WM_SETFONT
- };