#include "LyDrawingClass.h"
int w = 0; int h = 0;
void Function() {
}
void Draw() { DrawingClass::Start()->DrawBloodFrame(10, 20, 100, 15, 2, D3DCOLOR_RGBA(254, 0, 0, 184));
DrawingClass::Start()->DrawBlood_Vertical(100, 100, 200, 100, 55, D3DCOLOR_RGBA(254, 0, 0, 184));
DrawingClass::Start()->DrawBlood_Horizontal(67, 200, 300, 22, 100, D3DCOLOR_RGBA(254, 0, 0, 184), 1);
DrawingClass::Start()->DrawCenterBlood(300, 55, 100, 25, 98, 0);
DrawingClass::Start()->DrawBlood_Transverse(83, 360, 200, 100, 22, D3DCOLOR_RGBA(254, 0, 0, 184), D3DCOLOR_RGBA(44, 0, 0, 10));
DrawingClass::Start()->DrawBlood_Transverse(99, 400, 200, 22, 100, D3DCOLOR_RGBA(254, 0, 0, 184), D3DCOLOR_RGBA(44, 0, 0, 10)); }
void Ptr() { Function(); Draw(); }
int main(int argc, char *argv[]) { const char* class_name = "LyShark ClassName";
DWORD pid = DrawingClass::Start()->GetProcessIdByName(L"Win32Project.exe"); printf("进程PID = %d \n", pid);
HANDLE hwnd = DrawingClass::Start()->GetProcessHandle(pid); printf("进程句柄 = %d \n", hwnd);
w = DrawingClass::Start()->GetWindowWidth(class_name, class_name); h = DrawingClass::Start()->GetWindowHeight(class_name, class_name); DrawingClass::Start()->createWindow(class_name, class_name, "黑体", Ptr);
return 0; }
|