mirror of
https://github.com/snowie2000/mactype.git
synced 2025-01-05 10:17:02 +08:00
07a1eee62c
Dependency not included. Deps: EasyHook, FreeType
59 lines
1.0 KiB
C++
59 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#ifndef _INC_SHLWAPI
|
|
#define NO_SHLWAPI_STRFCNS
|
|
#define NO_SHLWAPI_PATH
|
|
#define NO_SHLWAPI_REG
|
|
#define NO_SHLWAPI_STREAM
|
|
#define NO_SHLWAPI_GDI
|
|
#include <shlwapi.h>
|
|
#endif
|
|
|
|
#if !defined(_INC_SHLWAPI) || defined(NOSHLWAPI) || defined(NO_SHLWAPI_PATH)
|
|
BOOL WINAPI PathIsRelative(LPCTSTR pszPath);
|
|
BOOL WINAPI PathRemoveFileSpec(LPTSTR pszPath);
|
|
LPTSTR WINAPI PathFindExtension(LPCTSTR pszPath);
|
|
LPTSTR WINAPI PathAddBackslash(LPTSTR pszPath);
|
|
LPTSTR WINAPI PathCombine(LPTSTR pszDest, LPCTSTR pszDir, LPCTSTR pszFile);
|
|
#endif
|
|
|
|
#include <atlbase.h>
|
|
|
|
template <class T>
|
|
class CArray : public CSimpleArray<T>
|
|
{
|
|
public:
|
|
T* Begin() const
|
|
{
|
|
return m_aT;
|
|
}
|
|
T* End() const
|
|
{
|
|
return m_aT + m_nSize;
|
|
}
|
|
};
|
|
|
|
template <class T>
|
|
class CValArray : public CSimpleValArray<T>
|
|
{
|
|
public:
|
|
T* Begin() const
|
|
{
|
|
return m_aT;
|
|
}
|
|
T* End() const
|
|
{
|
|
return m_aT + m_nSize;
|
|
}
|
|
};
|
|
|
|
template <class T>
|
|
class CPtrArray : public CValArray<T*>
|
|
{
|
|
};
|
|
|
|
template <class TKey, class TVal>
|
|
class CMap : public CSimpleMap<TKey, TVal>
|
|
{
|
|
};
|