#include <windows.h>
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[] = "PNGDialog";
int WINAPI WinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nCmdShow)
{
//bmp文件是带alpha通道的32位深度图片,可由png图片转换得到
HBITMAP hBmp = (HBITMAP)LoadImageA(NULL, "平滑.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
BITMAP bmp;
GetObject(hBmp, sizeof(BITMAP), &bmp);
/**/
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;//+-69+
wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch
纯Win32实现带alpha通道的位图的不规则窗口
最新推荐文章于 2025-04-30 09:15:18 发布

最低0.47元/天 解锁文章
2062

被折叠的 条评论
为什么被折叠?



