diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/mfc40/afxctl.inl | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to '')
-rw-r--r-- | public/sdk/inc/mfc40/afxctl.inl | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/public/sdk/inc/mfc40/afxctl.inl b/public/sdk/inc/mfc40/afxctl.inl new file mode 100644 index 000000000..d9608fcf2 --- /dev/null +++ b/public/sdk/inc/mfc40/afxctl.inl @@ -0,0 +1,79 @@ +// This is a part of the Microsoft Foundation Classes C++ library. +// Copyright (C) 1992-1995 Microsoft Corporation +// All rights reserved. +// +// This source code is only intended as a supplement to the +// Microsoft Foundation Classes Reference and related +// electronic documentation provided with the library. +// See these sources for detailed information regarding the +// Microsoft Foundation Classes product. + +// Inlines for AFXCTL.H + +#ifdef _AFXCTL_INLINE + +///////////////////////////////////////////////////////////////////////////// + +// COleControl inlines +_AFXCTL_INLINE BOOL COleControl::IsConvertingVBX() + { return m_bConvertVBX; } +_AFXCTL_INLINE void COleControl::FireKeyDown(USHORT* pnChar, short nShiftState) + { FireEvent(DISPID_KEYDOWN, EVENT_PARAM(VTS_PI2 VTS_I2), pnChar, + nShiftState); } +_AFXCTL_INLINE void COleControl::FireKeyUp(USHORT* pnChar, short nShiftState) + { FireEvent(DISPID_KEYUP, EVENT_PARAM(VTS_PI2 VTS_I2), pnChar, + nShiftState); } +_AFXCTL_INLINE void COleControl::FireKeyPress(USHORT* pnChar) + { FireEvent(DISPID_KEYPRESS, EVENT_PARAM(VTS_PI2), pnChar); } +_AFXCTL_INLINE void COleControl::FireMouseDown(short nButton, + short nShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y) + { FireEvent(DISPID_MOUSEDOWN, + EVENT_PARAM(VTS_I2 VTS_I2 VTS_XPOS_PIXELS VTS_YPOS_PIXELS), + nButton, nShiftState, x, y); } +_AFXCTL_INLINE void COleControl::FireMouseUp(short nButton, + short nShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y) + { FireEvent(DISPID_MOUSEUP, + EVENT_PARAM(VTS_I2 VTS_I2 VTS_XPOS_PIXELS VTS_YPOS_PIXELS), + nButton, nShiftState, x, y); } +_AFXCTL_INLINE void COleControl::FireMouseMove(short nButton, + short nShiftState, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y) + { FireEvent(DISPID_MOUSEMOVE, + EVENT_PARAM(VTS_I2 VTS_I2 VTS_XPOS_PIXELS VTS_YPOS_PIXELS), + nButton, nShiftState, x, y); } +_AFXCTL_INLINE void COleControl::FireClick() + { FireEvent(DISPID_CLICK, EVENT_PARAM(VTS_NONE)); } +_AFXCTL_INLINE void COleControl::FireDblClick() + { FireEvent(DISPID_DBLCLICK, EVENT_PARAM(VTS_NONE)); } +_AFXCTL_INLINE BOOL COleControl::ExchangeVersion( + CPropExchange* pPX, DWORD dwVersionDefault, BOOL bConvert) + { return pPX->ExchangeVersion(m_dwVersionLoaded, dwVersionDefault, bConvert); } + +// CPropExchange inlines +_AFXCTL_INLINE CPropExchange::CPropExchange() : m_dwVersion(0) + { } +_AFXCTL_INLINE BOOL CPropExchange::IsLoading() + { return m_bLoading; } +_AFXCTL_INLINE DWORD CPropExchange::GetVersion() + { return m_dwVersion; } + +// inline DDP_ routines +_AFXCTL_INLINE void AFXAPI DDP_LBString(CDataExchange* pDX, int id, + CString& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } +_AFXCTL_INLINE void AFXAPI DDP_LBStringExact(CDataExchange* pDX, int id, + CString& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } +_AFXCTL_INLINE void AFXAPI DDP_LBIndex(CDataExchange* pDX, int id, + int& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } +_AFXCTL_INLINE void AFXAPI DDP_CBString(CDataExchange* pDX, int id, + CString& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } +_AFXCTL_INLINE void AFXAPI DDP_CBStringExact(CDataExchange* pDX, int id, + CString& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } +_AFXCTL_INLINE void AFXAPI DDP_CBIndex(CDataExchange* pDX, int id, + int& member, LPCTSTR pszPropName) + { DDP_Text(pDX, id, member, pszPropName); } + +#endif //_AFXCTL_INLINE |