Mark Harmstone hellas@burntcomma.com writes:
- dc = CreateCompatibleDC(NULL);
- if (!dc) {
WARN("CreateCompatibleDC failed\n");
DeleteObject(hrgn);
return E_FAIL;
- }
- bmp = CreateBitmap(rect->right - rect->left, rect->bottom - rect->top, 1, 32, NULL);
You need a DIB for this, not a device bitmap.