代码拉取完成,页面将自动刷新
#pragma once
#include <Windows.h>
#include <vector>
#include <list>
#include <set>
#include <map>
#pragma warning(disable:4018) //有符号/无符号不匹配
#pragma warning(disable:4244) //从float转换到int,可能丢失数据
#pragma warning(disable:4996) //function or variable may be unsafe
struct RectWH_t
{
public:
int Left;
int Top;
int Width;
int Height;
inline RectWH_t()
{
Clear();
}
inline RectWH_t(int l,int t,int w,int h)
{
this->Left=l;
this->Top=t;
this->Width=w;
this->Height=h;
}
inline int Right()
{
return Left+Width;
}
inline int Bottom()
{
return Top+Height;
}
inline void Clear()
{
this->Left=0;
this->Top=0;
this->Width=0;
this->Height=0;
}
inline void FromRectF(void* RectF_RB)
{
float* RectFPtr=(float*)RectF_RB;
this->Left=(int)RectFPtr[0];
this->Top=(int)RectFPtr[1];
this->Width=int(RectFPtr[2]-RectFPtr[0]);
this->Height=int(RectFPtr[3]-RectFPtr[1]);
}
inline operator RECT()
{
RECT rt;
rt.left=Left;
rt.top=Top;
rt.right=Left+Width;
rt.bottom=Top+Height;
return rt;
}
};
typedef bool (*wstrless_t)(WCHAR*,WCHAR*);
bool wstrless(WCHAR* s1,WCHAR* s2);
WCHAR* wcsdup2(WCHAR* wstr);
WCHAR* wcsdup2flt(WCHAR* wstr);
int GenerateId();
BOOL PointInRect(int X,int Y,int Left,int Top,int Width,int Height);
void SetImmBoxPosition(HWND hWnd,int X,int Y);
WCHAR* GetImmResultString(HWND hWnd,int* LenOut);
extern const int ViewWidth;
extern const int ViewHeight;
extern const int FrameDelay;
class CDirect2dManager;
class CResourceManager;
class CUIManager;
extern CDirect2dManager* D2dMgr;
extern CResourceManager* ResMgr;
extern CUIManager* UiMgr;
//参数1是类型
//当参数1为0时,表示汇报,参数2是新增的完成数
//当参数1为1时,表示完成,参数2为0
#define WM_THREADCOMMAND (WM_USER+1)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。