# win32WaveBall **Repository Path**: long-xu/win32WaveBall ## Basic Information - **Project Name**: win32WaveBall - **Description**: Wave ball effect for win32 or C++projects - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: main - **Homepage**: https://blog.csdn.net/Long_xu/article/details/127698310?spm=1001.2014.3001.5501 - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-12 - **Last Updated**: 2022-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # win32WaveBall Wave ball effect for win32 or C++projects (C++/Win32波浪球效果) # 简介 这是一个基于C++在win32上实现的波浪球效果。它使用gid+进行图形绘制,支持指定签名、动态百分比显示以及特殊项目的PASS/FAIL显示。 对其封装成了一个类,并开放了相关参数给用户设置,可以灵活使用。 部分效果图小如下: ![wave_ball_show](https://img-blog.csdnimg.cn/b24fca028abd4e2dbd344c20faf42af4.gif) ## 使用 只需要包含了头文件GdiplusWaveBall.h和添加gdi+库即可使用该类;详情可以参考Sample。 ```cpp // GDI+ #include #pragma comment (lib, "GdiPlus.lib") using namespace Gdiplus; // Wave ball #include "./WaveBallApi/GdiplusWaveBall.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { //Initialize GDI+. Gdiplus::GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); // other code //Unload GDI+ Gdiplus::GdiplusShutdown(gdiplusToken); return 0; } ```