how to this?
i tried find on google, but the keyword are to wide to search T_T
Printable View
how to this?
i tried find on google, but the keyword are to wide to search T_T
Code:HBITMAP BitmapFromIcon(HICON hIcon)
{
HDC hDC = CreateCompatibleDC(NULL);
HBITMAP hBitmap = CreateCompatibleBitmap(hDC, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON));
HBITMAP hOldBitmap = (HBITMAP)SelectObject(hDC, hBitmap);
DrawIcon(hDC, 0, 0, hIcon);
SelectObject(hDC, hOldBitmap);
DeleteDC(hDC);
return hBitmap;
}
thanks you alot it helped