Janela transparente com dwm

Quero criar uma janela transparente com objetos opacos dentro e estou usando este código

bool nBOOL = true;
HRESULT hr = S_OK;
LRESULT nRet = S_OK;
HRGN hRgnBlur = 0;
DWM_BLURBEHIND bb = {0};
// Create and populate the BlurBehind structure.
// Set Blur Behind and Blur Region.
bb.fEnable = nBOOL; //true
bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
bb.fTransitionOnMaximized = 0; 
// Fool DWM with a fake region
if (nBOOL) { hRgnBlur = CreateRectRgn(-1, -1, 0, 0); }
bb.hRgnBlur = hRgnBlur;
// Set Blur Behind mode.
nRet = DwmEnableBlurBehindWindow(HWnd, &bb);
HBRUSH brush = CreateSolidBrush(RGB(0, 0, 255));
SetClassLongPtr(HWnd, GCLP_HBRBACKGROUND, (LONG_PTR)brush);

`

O problema é que o destino de renderização está usando um método getbackgroundcolor () ao desenhar objetos e isso retorna nulo ou um fundo com alfa 0 causando um problema de renderização (os objetos não parecem bem

questionAnswers(0)

yourAnswerToTheQuestion