mirror of
https://github.com/clang-retro/mfc.git
synced 2026-11-28 21:29:33 -08:00
CWinAppEx (its registry settings, window placement and the context menu, keyboard, mouse, shell and tooltip managers), CSettingsStore and CSettingsStoreSP, afxGlobalData, and the visual managers (classic, Office XP, Windows, Office 2003, VS 2005, Office 2007, VS 2008, Windows 7). They draw the standalone controls: CMFCButton, CMFCLinkCtrl, CMFCMenuButton, CMFCColorButton with its palette, CMFCEditBrowseCtrl, CMFCMaskedEdit, CMFCFontComboBox and CMFCSpinButtonCtrl. The portable layer gains DrawState, TTM_SETTITLE and HIGHCONTRAST; CDC gains DrawState's CBrush* overloads. fptest covers them on Windows and natively. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
// afxspinbuttonctrl.h - CMFCSpinButtonCtrl, an up-down control drawn by
|
|
// the visual manager.
|
|
//
|
|
// Part of clang-retro MFC, an independent implementation of the MFC API.
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
#ifndef __AFXSPINBUTTONCTRL_H__
|
|
#define __AFXSPINBUTTONCTRL_H__
|
|
|
|
#ifndef __AFXWIN_H__
|
|
#include <afxwin.h>
|
|
#endif
|
|
#include <afxcmn.h>
|
|
#include <afxvisualmanager.h>
|
|
|
|
class CMFCSpinButtonCtrl : public CSpinButtonCtrl {
|
|
DECLARE_DYNAMIC(CMFCSpinButtonCtrl)
|
|
public:
|
|
CMFCSpinButtonCtrl();
|
|
virtual ~CMFCSpinButtonCtrl();
|
|
|
|
protected:
|
|
virtual void OnDraw(CDC* pDC);
|
|
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
afx_msg LRESULT OnMouseLeave(WPARAM, LPARAM);
|
|
afx_msg void OnCancelMode();
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
BOOL m_bIsButtonPressedUp, m_bIsButtonPressedDown, m_bIsButtonHighligtedUp, m_bIsButtonHighligtedDown;
|
|
BOOL m_bTracked;
|
|
};
|
|
|
|
#endif // __AFXSPINBUTTONCTRL_H__
|