#pragma once #include "kbase.hpp" typedef struct HICON__{}*HICON; typedef HICON HCURSOR; namespace Hxsoft{ namespace XFrame { class IXFUtil { public: static HCURSOR SetCursorWait(); static int RestoreCursor(HCURSOR hCursor); static const wchar_t* GetUrlData(LPWSTR url); static bool HasCacheData(LPWSTR url); static void CacheUrlData(LPWSTR url,LPWSTR data); static int SaveToFile(LPTSTR pFile,LPTSTR pData,LPTSTR ext, LPTSTR pFilter, LPTSTR pFileName=NULL); static LPWSTR MD5(LPWSTR pStr); static bool SmallImage(LPCTSTR lpszPathName, LPCTSTR lpszNewPathName, int width, int height, int flag=0); static LPWSTR OpenDialog(HWND Owner,LPWSTR str); //static std::wstring MakeComboStyleClassName(std::wstring styleClass); //static std::wstring EnsureComboStyleClassName(std::wstring styleClass,std::map &items); }; }} namespace Hxsoft { namespace XUtil{ LPTSTR FormatDecimalString(LPTSTR str, LPTSTR format, bool& bfree); }}