
VC++编程
文章平均质量分 86
icefox
这个作者很懒,什么都没留下…
展开
-
纯win32实现PNG图片透明窗体
如果用g++编译需要加上libgdiplus.a,如果用msvc编译器需要加上gdiplus.lib 可以直接 #pragma comment(lib,"gdiplus.lib")#include #include /* GDI+ startup token */ULONG_PTR gdiplusStartupToken;/* Declare Windows原创 2012-04-20 15:27:33 · 9857 阅读 · 11 评论 -
获取当前应用程序实例(instance:HINSTANCE)
if using MFC AfxGetInstanceHandle(). For console programs, call GetConsoleWindow() to get the HWND then GetWindowLong() to get the HINSTANCE.For the Win32 API, you could also use GetModuleHandle():转载 2012-04-20 15:25:53 · 14448 阅读 · 0 评论