xj qian
2024-06-27 e4b4c508c599943ddb22b7d4868ccd40ac05a043
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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<std::wstring,std::wstring> &items);
    };
}}
 
namespace Hxsoft { namespace XUtil{
    LPTSTR FormatDecimalString(LPTSTR  str, LPTSTR format, bool& bfree);
}}