#include "uxthemep.h"
#include <ole2.h>
#include <objidl.h>
#include <gdiplus.h>
#include <gdipluscolor.h>
#include <winreg.h>
#include <shlwapi.h>
Go to the source code of this file.
◆ MSSTYLES_TryLoadPng()
Definition at line 18 of file pngsup.cpp.
23{
25
27 if (!hRes)
29
31 if (!hAlloc)
33
37 {
40 }
41
44 {
45 Gdiplus::Bitmap* gdipBitmap = Gdiplus::Bitmap::FromStream(
stream,
FALSE);
47 if (gdipBitmap)
48 {
49 ret = gdipBitmap->GetHBITMAP(Gdiplus::Color(0, 0, 0, 0), phBitmap) == Gdiplus::Ok;
50 delete gdipBitmap;
51 }
52 }
53
57}
BOOL WINAPI FreeResource(HGLOBAL handle)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
GLuint GLuint GLsizei GLenum type
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
IStream *WINAPI SHCreateMemStream(const BYTE *lpbData, UINT dwDataLen)
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define UnlockResource(handle)
Referenced by MSSTYLES_LoadBitmap().
◆ prepare_png_alpha()
Definition at line 60 of file pngsup.cpp.
63{
67
69
72
73 if (
dib.dsBm.bmBitsPixel != 32)
74
76
78 n =
dib.dsBmih.biHeight *
dib.dsBmih.biWidth;
80 {
83 {
87
89 }
91 }
92
94}
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
GLboolean GLboolean GLboolean GLboolean a
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
Referenced by MSSTYLES_LoadBitmap().