/** * @file XTPResourceImage.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPRESOURCEIMAGE_H__) # define __XTPRESOURCEIMAGE_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" // Composite image flag for CXTPResourceImage::DrawImage # define XTP_DI_COMPOSITE 1 class CXTPResourceImages; class CXTPResourceImageList; class CXTPNotifyConnection; class CXTPBitmapDC; /** * @brief * Represent a resource image and provides basic images functions. * @see * CXTPResourceImages */ class _XTP_EXT_CLASS CXTPResourceImage : public CXTPCmdTarget { public: /** * @brief * Constructs resource image which is a part of image collection. * @param pImages A valid pointer to image collection the image belongs to. */ CXTPResourceImage(CXTPResourceImages* pImages); /** * @brief * Handles resource image deallocation. */ virtual ~CXTPResourceImage(); public: /** * @brief * Loads image from the resource specified. * @param hModule Resource module handle. * @param lpszBitmapFileName PNG or bitmap resource identifier to load from * "PNG" or RT_BITMAP resource directories respectively. * @return * TRUE if an image is load, FALSE otherwise. * @see * SetBitmap */ BOOL LoadFile(HMODULE hModule, LPCTSTR lpszBitmapFileName); /** * @brief * Loads image bits from the bitmap provided. The bitmap handle is * destroyed upon successful completion. * @param hBitmap Bitmap handle to load image bits from. * @param bAlpha TRUE causes the bitmap to be processed as a 32-bit image with alpha channel. * @see * LoadFile */ void SetBitmap(HBITMAP hBitmap, BOOL bAlpha = FALSE); /** * @brief * Draws an image to the device context provided. * @param pDC A valid pointer to the target device context. * @param rcDest Destination rectangle. * @param rcSrc Source rectangle. */ void DrawImage(CDC* pDC, const CRect& rcDest, CRect rcSrc); /** * @brief * Draws an image to the device context provided. * @param pDC A valid pointer to the target device context. * @param rcDest Destination rectangle. * @param rcSrc Source rectangle. * @param rcSizingMargins Sizing margins. */ void DrawImage(CDC* pDC, const CRect& rcDest, CRect rcSrc, CRect rcSizingMargins); /** * @brief * Draws an image to the device context provided. * @param pDC A valid pointer to the target device context. * @param rcDest Destination rectangle. * @param rcSrc Source rectangle. * @param rcSizingMargins Sizing margins. * @param clrTransparent A color key to be treated as transparent color. */ void DrawImage(CDC* pDC, const CRect& rcDest, CRect rcSrc, const CRect& rcSizingMargins, COLORREF clrTransparent); /** * @brief * Draws an image to the device context provided. * @param pDC A valid pointer to the target device context. * @param rcDest Destination rectangle. * @param rcSrc Source rectangle. * @param rcSizingMargins Sizing margins. * @param clrTransparent A color key to be treated as transparent color. * @param dwFlags If contains XTP_DI_COMPOSITE bit, the image will be drawn as composited. */ void DrawImage(CDC* pDC, const CRect& rcDest, CRect rcSrc, const CRect& rcSizingMargins, COLORREF clrTransparent, DWORD dwFlags); /** * @brief * Determine image dimensions. * @return * The height of the image. */ int GetHeight() const; /** * @brief * Determine image dimensions. * @return * The width of the image. */ int GetWidth() const; /** * @brief * Determine image dimensions. * @return * The width and height size of the image. */ CSize GetExtent() const; /** * @brief * Determines whether the image is a 32-bit image with alpha channel. * @return * TRUE if the image is a 32-bit image with alpha channel. */ BOOL IsAlphaImage() const; /** * @brief * Enables preserved image orientation for RTL contexts and inverted drawing. * @see * DrawImageFlipped, CXTPDrawHelpers::IsContextRTL */ void PreserveOrientation(); /** * @brief * Obtains a source rectable for an image in image list. * @param nState Stage/image index in the image list. * @param nCount Total number of images in the image list. * @return * The computed image rectangle. */ CRect GetSource(int nState = 0, int nCount = 1) const; /** * @brief * Obtains pixel color value at the point specified. * @param pt Pixel coordinates. * @param clrPixel The output pixel color value. * @return * TRUE if the color is successfully determined, FALSE otherwise. */ BOOL GetBitmapPixel(CPoint pt, COLORREF& clrPixel); /** * @brief * Pre-multiplies alpha image bits. */ void Premultiply(); /** * @brief * Enables/disables image flipping. * @param bFlip TRUE inverts the image, FALSE restores original image. */ void DrawImageFlipped(BOOL bFlip); protected: /** * @brief * Draws image part. * @param pDCDest A valid pointer to the target device context. * @param rcDest Target rectangle. * @param pDCSrc A valid pointer to the source device context. * @param rcSrc Source rectangle. * @return * TRUE if drawing is successful, FALSE otherwise. */ BOOL DrawImagePart(CDC* pDCDest, CRect rcDest, CDC* pDCSrc, CRect rcSrc) const; /** * @brief * Inverts image bits. * @return * TRUE if bits inversion is successful, FALSE otherwise. */ BOOL InvertBitmap(); /** * @brief * Obtains bitmap bits and uses them as image bits for the current image. * @param hBitmap Source bitmap handle. * @return * TRUE if successfully converted, FALSE otherwise. */ BOOL ConvertToBits(HBITMAP hBitmap); protected: LPVOID m_pBits; /**< Image bits */ BOOL m_bAlpha; /**< TRUE for 32-bit alpha images. */ BOOL m_bMultiply; /**< TRUE if an alpha image bits were multiplied. */ BOOL m_bImageOrientaionPreserved; /**< TRUE if image orientation is to be preserved for RTL or flipped drawing. */ BOOL m_bInvert; /**< TRUE indicates the images bits are currently inverted. */ CSize m_szExtent; /**< Image size. */ BOOL m_bFlipped; /**< TRUE m_bFlipped the image bits are currently flipped. */ CXTPResourceImages* m_pImages; /**< Parent image list pointer. */ friend class CXTPResourceImages; friend class CXTPResourceImageList; }; /** * @brief * Implements resource image collection and its operations. * @see * CXTPResourceImage */ class _XTP_EXT_CLASS CXTPResourceImages : public CXTPCmdTarget { friend class CXTPSingleton; public: /** * @brief * Construct an empty resource image collection. */ CXTPResourceImages(); /** * @brief * Handles resource image list deallocation. */ virtual ~CXTPResourceImages(); public: /** * @brief * Removes all loaded images and clears all loaded properties. * @see * RemoveAll */ void Reset(); /** * @brief * Removes all loaded images only. Loaded properties remain valid. * @see * Reset */ void RemoveAll(); /** * @brief * Loads image from resources and adds it to the collection. * @param lpszImageFile Image file name as used in resources. Symbols '.' and '\' * get replaced with '_'. * @return * A loaded image pointer or NULL if unble to load an image. * @see * LoadImage */ CXTPResourceImage* LoadFile(LPCTSTR lpszImageFile); /** * @brief * Loads image from resource. * @param lpszImageFile Image file name as used in resources. Symbols '.' and '\' * get replaced with '_'. * @return * A loaded image pointer or NULL if unble to load an image. * @see * LoadFile */ CXTPResourceImage* LoadImage(LPCTSTR lpszImageFile); /** * @brief * Obtains resource handle value. * @return * Resource handle value. * @see * SetHandle */ HMODULE GetHandle() const; /** * @brief * Sets image collection resource handle. * @param lpszDllFileName DLL file name. * @param lpszIniFileName Optional INI resource file name from TEXTFILE * resource directory to be used for loading * file specific properties. * @return * TRUE if resource handle is successfully set and resource loaded. * @see * SetIniData */ BOOL SetHandle(LPCTSTR lpszDllFileName, LPCTSTR lpszIniFileName = NULL); /** * @brief * Sets image collection resource handle. * @param hResource Module handle to be used for resources. * @param lpszIniFileName Optional INI resource file name from TEXTFILE * resource directory to be used for loading * file specific properties. * @param bFreeOnRelease If TRUE, the module specified by hResource handle * will be unloaded on releasing. * @return * TRUE if resource handle is successfully set and resource loaded. * @see * SetIniData */ BOOL SetHandle(HMODULE hResource, LPCTSTR lpszIniFileName = NULL, BOOL bFreeOnRelease = FALSE); /** * @brief * Sets image collection resource handle. * @param hResource Module handle to be used for resources. * @param lpszThemeFileName Optional INI resource file name from TEXTFILE * resource directory to be used for loading * file specific properties. * @param lpszAppFileName Name of initialization file of the application * @param bFreeOnRelease If TRUE, the module specified by hResource handle * will be unloaded on releasing. * @return * TRUE if resource handle is successfully set and resource loaded. * @see * SetIniData */ BOOL SetHandle(HMODULE hResource, LPCTSTR lpszThemeFileName, LPCTSTR lpszAppFileName, BOOL bFreeOnRelease = FALSE); /** * @brief * Loads INI file properties from the provided input. * @param lpIniData INI file contents to load. * @see * SetHandle */ void SetIniData(LPCSTR lpIniData); /** * @brief * Searches for a module that contains the resource specified and * uses it as a resource module. * @param lpszTestImageFile Test image resource identifier. * @param lpResType Test image resource type. * @return * TRUE if the resource specified is found and its module is used. * @see * SetIniData, SetHandle */ BOOL InitResourceHandle(LPCTSTR lpszTestImageFile, LPCTSTR lpResType = RT_BITMAP); /** * @brief * Obtains color value from the specific key of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains color value. * @param clrDefault Default color value to be used. * @return * The obtained or default color value. * @see * GetImageInt, GetImageRect, GetImageSize, GetImageString, GetImageValue */ COLORREF GetImageColor(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName, COLORREF clrDefault = (COLORREF)-1) const; /** * @brief * Obtains integer value from the specific key of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains integer value. * @param nDefault Default integer value to be used. * @return * The obtained or default integer value. * @see * GetImageColor, GetImageRect, GetImageSize, GetImageString, GetImageValue */ int GetImageInt(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName, int nDefault = -1) const; /** * @brief * Obtains rectangle value from the specific key of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains rectangle value. * @param rcDefault Default rectangle value to be used. * @return * The obtained or default rectangle value. * @see * GetImageColor, GetImageInt, GetImageSize, GetImageString, GetImageValue */ CRect GetImageRect(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName, CRect rcDefault = CRect(0, 0, 0, 0)) const; /** * @brief * Obtains size value from the specific key of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains size value. * @param szDefault Default size value to be used. * @return * The obtained or default size value. * @see * GetImageColor, GetImageInt, GetImageRect, GetImageString, GetImageValue */ CSize GetImageSize(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName, CSize szDefault = CSize(0, 0)) const; /** * @brief * Obtains string value from the specific key of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains string value. * @param lpszDef Default string value to be used. * @return * The obtained or default string value. * @see * GetImageColor, GetImageInt, GetImageRect, GetImageSize, GetImageValue */ CString GetImageString(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName, LPCTSTR lpszDef = NULL) const; /** * @brief * Obtains string value from the specific key of any type of the currently loaded INI file. * @param lpszSectionName INI section name. * @param lpszKeyName INI key name that contains string value. * @return * The obtained or default string value. * @see * GetImageColor, GetImageInt, GetImageRect, GetImageString, GetImageSize */ CString GetImageValue(LPCTSTR lpszSectionName, LPCTSTR lpszKeyName) const; /** * @brief * Determines if image collection state is valid, i.e. a resource module * is used and all properties loaded. * @return * TRUE if collection is in a valid state. * @see * SetHandle */ BOOL IsValid() const; /** @cond */ // Retained for backward compatibility void AssertValid() const; /** @endcond */ /** * @brief * Loads a bitmap from the currently assigned resource module. * @param pBitmap A valid pointer to the bitmap object that will be loaded * upon successful completion. * @param lpszResourceName Bitmap resource identifier to load. * @return * TRUE if loaded successfully, FALSE otherwise. */ BOOL LoadBitmap(CBitmap* pBitmap, LPCTSTR lpszResourceName); /** * @brief * Return connection object pointer that can be used for subscribing * to collection events. * @return * Return connection object pointer. */ CXTPNotifyConnection* GetConnection(); CString m_strDllFileName; /**< Loaded DLL file name */ CString m_strIniFileName; /**< Loaded INI file name */ public: /** @cond */ BOOL m_bLoadedNothing; /** @endcond */ protected: /** * @brief * Converts file name to resource file name, Symbols '.' and '\' * get replaced with '_'. * @param strImageFile File name pointer to convert. * @return * Converted resource file name value. */ CString _ImageNameToResourceName(LPCTSTR strImageFile); /** * @brief * Clears all loaded INI properties. */ void ClearProperties(); /** * @brief * Loads INI properties from the INI text range. * @param lpTextFile INI data start pointer. * @param lpTextFileEnd INI data end pointer. * @param bAllowOverwrite TRUE if it is allowed to overwrite existing properties. */ void LoadProperties(LPSTR lpTextFile, LPSTR lpTextFileEnd, BOOL bAllowOverwrite); private: BOOL ReadString(CString& str, LPSTR& lpTextFile, LPSTR lpTextFileEnd); BOOL LoadResources(LPCTSTR lpszIniFileName); BOOL LoadResources(HRSRC hRsrc, BOOL bAllowOverwrite); static BOOL CALLBACK EnumResNameProc(HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam); HRSRC FindResourceIniFile(HMODULE hResource); UINT GetKeyHash(LPCTSTR lpszSection, LPCTSTR lpszKeyName) const; HBITMAP AllocateLayerBitmap(UINT cx, UINT cy, LPDWORD* lpBits = NULL, SIZE* pSize = NULL); protected: HMODULE m_hResource; /**< Associated resource module handle. */ BOOL m_bFreeOnRelease; /**< If TRUE, the module determined by m_hResource will be unloaded upon release. */ CRITICAL_SECTION m_cs; /**< Shared access critical section. */ BOOL m_bPremultiplyImages; /**< If TRUE, the bits of alpha images are to be pre-multiplied. */ CXTPBitmapDC* m_pdc; /**< An off-screen device context pointer used for internal image processing. */ HBITMAP m_hbmLayer; /**< Bitmap layer handle. */ LPDWORD m_pLayerBits; /**< Bitmap layer bits pointer. */ CXTPNotifyConnection* m_pConnection; /**< Connection sink object pointer. */ CMap m_mapPropeties; /**< Loaded INI properties. */ CMapStringToPtr m_mapImages; /**< Loaded image collection. */ # ifdef _XTP_ACTIVEX /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPResourceImages); BOOL OleLoadFromFile(LPCTSTR lpszPath, LPCTSTR lpszIniFileName); virtual void OnFinalRelease(); BSTR OleGetIniFileName(); BSTR OleGetDllFileName(); OLE_COLOR OleGetGetColor(LPCTSTR lpszSection, LPCTSTR lpszEntry); /** @endcond */ # endif friend class CXTPResourceImage; }; /** * @brief * Call to access members of the CXTPResourceImages class. * @return * Returns the a pointer to the single instance of the * CXTPResourceImages class. */ _XTP_EXT_CLASS CXTPResourceImages* AFX_CDECL XTPResourceImages(); /** * @brief * Call to access members of the CXTPResourceImage class. * @param lpszImageFile Name of the image file to load specified in the theme INI. * @return * Returns the a pointer to the single instance of the * CXTPResourceImage class. */ _XTP_EXT_CLASS CXTPResourceImage* AFX_CDECL XTPLoadImage(LPCTSTR lpszImageFile); /** * @brief * Call to get the color value specified by lpszKey from the * current theme. * @param lpszSection Name of the section in the theme INI file. * @param lpszKey Name of the value that defines the specified value. * @param clrDef Default value returned if lpszKey was not found. * @return * A value representing the color defined by lpszKey. */ _XTP_EXT_CLASS COLORREF AFX_CDECL XTPIniColor(LPCTSTR lpszSection, LPCTSTR lpszKey, COLORREF clrDef); /** * @brief * Call to get the int value specified by lpszKey from the * current theme. * @param lpszSection Name of the section in the theme INI file. * @param lpszKey Name of the value that defines the specified value. * @param nDef Default value returned if lpszKey was not found. * @return * A value representing the int defined by lpszKey. */ _XTP_EXT_CLASS int AFX_CDECL XTPIniInt(LPCTSTR lpszSection, LPCTSTR lpszKey, int nDef); /** * @brief * Call to get the CRect value specified by lpszKey from the * current theme. * @param lpszSection Name of the section in the theme INI file. * @param lpszKey Name of the value that defines the specified value. * @param rcDef Default value returned if lpszKey was not found. * @return * A value representing the CRect defined by lpszKey. */ _XTP_EXT_CLASS CRect AFX_CDECL XTPIniRect(LPCTSTR lpszSection, LPCTSTR lpszKey, CRect rcDef); /** * @brief * Call to get the CSize value specified by lpszKey from the * current theme. * @param lpszSection Name of the section in the theme INI file. * @param lpszKey Name of the value that defines the specified value. * @param szDef Default value returned if lpszKey was not found. * @return * A value representing the CSize defined by lpszKey. */ _XTP_EXT_CLASS CSize AFX_CDECL XTPIniSize(LPCTSTR lpszSection, LPCTSTR lpszKey, CSize szDef); /** * @brief * Call to get the CString value specified by lpszKey from the * current theme. * @param lpszSection Name of the section in the theme INI file. * @param lpszKey Name of the value that defines the specified value. * @param lpszDef Default value returned if lpszKey was not found. * @return * A value representing the CString defined by lpszKey. */ _XTP_EXT_CLASS CString AFX_CDECL XTPIniString(LPCTSTR lpszSection, LPCTSTR lpszKey, LPCTSTR lpszDef); // Office2007.dll # define xtpIniOffice2007Aqua \ _T("OFFICE2007AQUA_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2007 Aqua settings file. */ # define xtpIniOffice2007Blue \ _T("OFFICE2007BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2007 Blue settings file. */ # define xtpIniOffice2007Black \ _T("OFFICE2007BLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2007 Black settings file. */ # define xtpIniOffice2007Silver \ _T("OFFICE2007SILVER_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2007 Silver settings file. */ // Office2010.dll # define xtpIniOffice2010Blue \ _T("OFFICE2010BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2010 Blue settings file. */ # define xtpIniOffice2010Black \ _T("OFFICE2010BLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2010 Black settings file. */ # define xtpIniOffice2010Silver \ _T("OFFICE2010SILVER_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2010 Silver settings file. */ // Office2013.dll # define xtpIniOffice2013Access \ _T("OFFICE2013ACCESS_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2013 Access settings file. */ # define xtpIniOffice2013AccessGrayDark \ _T("OFFICE2013ACCESSGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Access Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2013AccessGrayLight \ _T("OFFICE2013ACCESSGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Access Light Gray settings \ \ \ \ file. */ # define xtpIniOffice2013Excel \ _T("OFFICE2013EXCEL_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2013 Excel settings file. */ # define xtpIniOffice2013ExcelGrayDark \ _T("OFFICE2013EXCELGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 Excel Dark Gray settings file. */ # define xtpIniOffice2013ExcelGrayLight \ _T("OFFICE2013EXCELGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Excel Light Gray settings \ \ \ \ file. */ # define xtpIniOffice2013OneNote \ _T("OFFICE2013ONENOTE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 OneNote settings file. */ # define xtpIniOffice2013OneNoteGrayDark \ _T("OFFICE2013ONENOTEGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 OneNote Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2013OneNoteGrayLight \ _T("OFFICE2013ONENOTEGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 OneNote Light Gray settings \ \ \ \ file. */ # define xtpIniOffice2013Outlook \ _T("OFFICE2013OUTLOOK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 Outlook settings file. */ # define xtpIniOffice2013OutlookGrayDark \ _T("OFFICE2013OUTLOOKGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Outlook Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2013OutlookGrayLight \ _T("OFFICE2013OUTLOOKGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Outlook Light Gray settings \ \ \ \ file. */ # define xtpIniOffice2013Publisher \ _T("OFFICE2013PUBLISHER_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 Publisher settings file. */ # define xtpIniOffice2013PublisherGrayDark \ _T("OFFICE2013PUBLISHERGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2013 Publisher Dark Gray \ \ \ \ settings file. */ # define xtpIniOffice2013PublisherGrayLight \ _T("OFFICE2013PUBLISHERGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ \ specifies Office 2013 Publisher Light Gray \ \ \ \ settings file. */ # define xtpIniOffice2013PowerPoint \ _T("OFFICE2013POWERPOINT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 PowerPoint settings file. */ # define xtpIniOffice2013PowerPointGrayDark \ _T("OFFICE2013POWERPOINTGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ \ specifies Office 2013 PowerPoint Dark Gray \ \ \ \ settings file. */ # define xtpIniOffice2013PowerPointGrayLight \ _T("OFFICE2013POWERPOINTGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ \ specifies Office 2013 PowerPoint Light Gray \ \ \ \ settings file. */ # define xtpIniOffice2013Word \ _T("OFFICE2013WORD_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Office \ \ \ \ 2013 Word settings file. */ # define xtpIniOffice2013WordGrayDark \ _T("OFFICE2013WORDGRAYDARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 Word Dark Gray settings file. */ # define xtpIniOffice2013WordGrayLight \ _T("OFFICE2013WORDGRAYLIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2013 Word Light Gray settings file. */ // Office2016.dll # define xtpIniOffice2016AccessBlack \ _T("OFFICE2016ACCESSBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Access Black settings file. */ # define xtpIniOffice2016AccessColorful \ _T("OFFICE2016ACCESSCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Access Colorful settings file. \ \ \ \ \ \ \ \ \ \ */ # define xtpIniOffice2016AccessDarkGray \ _T("OFFICE2016ACCESSDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Access Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2016AccessWhite \ _T("OFFICE2016ACCESSWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Access White settings file. */ # define xtpIniOffice2016ExcelBlack \ _T("OFFICE2016EXCELBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Excel Black settings file. */ # define xtpIniOffice2016ExcelColorful \ _T("OFFICE2016EXCELCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Excel Colorful settings file. */ # define xtpIniOffice2016ExcelDarkGray \ _T("OFFICE2016EXCELDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Excel Dark Gray settings file. */ # define xtpIniOffice2016ExcelWhite \ _T("OFFICE2016EXCELWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Excel White settings file. */ # define xtpIniOffice2016OneNoteBlack \ _T("OFFICE2016ONENOTEBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 OneNote Black settings file. */ # define xtpIniOffice2016OneNoteColorful \ _T("OFFICE2016ONENOTECOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 OneNote Colorful settings \ \ \ \ file. */ # define xtpIniOffice2016OneNoteDarkGray \ _T("OFFICE2016ONENOTEDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 OneNote Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2016OneNoteWhite \ _T("OFFICE2016ONENOTEWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 OneNote White settings file. */ # define xtpIniOffice2016OutlookBlack \ _T("OFFICE2016OUTLOOKBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Outlook Black settings file. */ # define xtpIniOffice2016OutlookColorful \ _T("OFFICE2016OUTLOOKCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Outlook Colorful settings \ \ \ \ file. */ # define xtpIniOffice2016OutlookDarkGray \ _T("OFFICE2016OUTLOOKDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Outlook Dark Gray settings \ \ \ \ file. */ # define xtpIniOffice2016OutlookWhite \ _T("OFFICE2016OUTLOOKWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Outlook White settings file. */ # define xtpIniOffice2016PublisherBlack \ _T("OFFICE2016PUBLISHERBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Publisher Black settings file. \ \ \ \ \ \ \ \ \ \ */ # define xtpIniOffice2016PublisherColorful \ _T("OFFICE2016PUBLISHERCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Publisher Colorful settings \ \ \ \ file. */ # define xtpIniOffice2016PublisherDarkGray \ _T("OFFICE2016PUBLISHERDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Publisher Dark Gray \ \ \ \ settings file. */ # define xtpIniOffice2016PublisherWhite \ _T("OFFICE2016PUBLISHERWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 Publisher White settings file. \ \ \ \ \ \ \ \ \ \ */ # define xtpIniOffice2016PowerPointBlack \ _T("OFFICE2016POWERPOINTBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 PowerPoint Black settings \ \ \ \ file. */ # define xtpIniOffice2016PowerPointColorful \ _T("OFFICE2016POWERPOINTCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ \ specifies Office 2016 PowerPoint Colorful \ \ \ \ settings file. */ # define xtpIniOffice2016PowerPointDarkGray \ _T("OFFICE2016POWERPOINTDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ \ specifies Office 2016 PowerPoint Dark Gray \ \ \ \ settings file. */ # define xtpIniOffice2016PowerPointWhite \ _T("OFFICE2016POWERPOINTWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Office 2016 PowerPoint White settings \ \ \ \ file. */ # define xtpIniOffice2016WordBlack \ _T("OFFICE2016WORDBLACK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Word Black settings file. */ # define xtpIniOffice2016WordColorful \ _T("OFFICE2016WORDCOLORFUL_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Word Colorful settings file. */ # define xtpIniOffice2016WordDarkGray \ _T("OFFICE2016WORDDARKGRAY_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Word Dark Gray settings file. */ # define xtpIniOffice2016WordWhite \ _T("OFFICE2016WORDWHITE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Office 2016 Word White settings file. */ // VisualStudio2012.dll # define xtpIniVisualStudio2012Dark \ _T("VISUALSTUDIO2012DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2012 Dark settings file. */ # define xtpIniVisualStudio2012Light \ _T("VISUALSTUDIO2012LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2012 Light settings file. */ // VisualStudio2015.dll # define xtpIniVisualStudio2015Blue \ _T("VISUALSTUDIO2015BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2015 Blue settings file. */ # define xtpIniVisualStudio2015Dark \ _T("VISUALSTUDIO2015DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2015 Dark settings file. */ # define xtpIniVisualStudio2015Light \ _T("VISUALSTUDIO2015LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2015 Light settings file. */ // VisualStudio2017.dll # define xtpIniVisualStudio2017Blue \ _T("VISUALSTUDIO2017BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2017 Blue settings file. */ # define xtpIniVisualStudio2017BlueExtra \ _T("VISUALSTUDIO2017BLUEEXTRA_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Visual Studio 2017 Blue Extra settings \ \ \ \ file. */ # define xtpIniVisualStudio2017Dark \ _T("VISUALSTUDIO2017DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2017 Dark settings file. */ # define xtpIniVisualStudio2017Light \ _T("VISUALSTUDIO2017LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2017 Light settings file. */ // VisualStudio2019.dll # define xtpIniVisualStudio2019Blue \ _T("VISUALSTUDIO2019BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2019 Blue settings file. */ # define xtpIniVisualStudio2019BlueExtra \ _T("VISUALSTUDIO2019BLUEEXTRA_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Visual Studio 2019 Blue Extra settings \ \ \ \ file. */ # define xtpIniVisualStudio2019Dark \ _T("VISUALSTUDIO2019DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2019 Dark settings file. */ # define xtpIniVisualStudio2019Light \ _T("VISUALSTUDIO2019LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2019 Light settings file. */ // VisualStudio2022.dll # define xtpIniVisualStudio2022Blue \ _T("VISUALSTUDIO2022BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2022 Blue settings file. */ # define xtpIniVisualStudio2022BlueExtra \ _T("VISUALSTUDIO2022BLUEEXTRA_INI") /**< Use with CXTPResourceImages::SetHandle(), \ \ \ \ specifies Visual Studio 2022 Blue Extra settings \ \ \ \ file. */ # define xtpIniVisualStudio2022Dark \ _T("VISUALSTUDIO2022DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2022 Dark settings file. */ # define xtpIniVisualStudio2022Light \ _T("VISUALSTUDIO2022LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies \ \ \ \ Visual Studio 2022 Light settings file. */ // Windows7.dll # define xtpIniWindows7Blue \ _T("WINDOWS7BLUE_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Windows 7 \ \ \ \ Blue settings file. */ // Windows10.dll # define xtpIniWindows10Light \ _T("WINDOWS10LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Windows \ \ \ \ 10 Light settings file. */ # define xtpIniWindows10Dark \ _T("WINDOWS10DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Windows \ \ \ \ 10 Dark settings file. */ // Windows11.dll # define xtpIniWindows11Light \ _T("WINDOWS11LIGHT_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Windows \ \ \ \ 11 Light settings file. */ # define xtpIniWindows11Dark \ _T("WINDOWS11DARK_INI") /**< Use with CXTPResourceImages::SetHandle(), specifies Windows \ \ \ \ 11 Dark settings file. */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPRESOURCEIMAGE_H__) /** @endcond */