#include "Mra.h" #include "MraIcons.h" void CMraProto::AddIcoLibItems(LPWSTR lpwszRootSectionName, LPWSTR lpwszSubSectionName, const GUI_DISPLAY_ITEM *pgdiItems, size_t dwCount, HANDLE *hResult) { char szBuff[MAX_PATH]; WCHAR wszSection[MAX_PATH], wszPath[MAX_FILEPATH]; SKINICONDESC sid = {0}; sid.cbSize = sizeof(sid); sid.pwszSection = wszSection; sid.pwszDefaultFile = wszPath; sid.cx = sid.cy = 16; sid.flags = SIDF_ALL_UNICODE; if (lpwszSubSectionName == NULL) lpwszSubSectionName = L""; GetModuleFileName(masMraSettings.hInstance, wszPath, SIZEOF(wszPath)); mir_sntprintf(wszSection, SIZEOF(wszSection), L"%s%s%s", lpwszRootSectionName, m_tszUserName, lpwszSubSectionName); for (size_t i = 0;i