SetWindowPos(hwnd, HWND_TOPMOST, 400, 30, 50, 20, SWP_SHOWWINDOW);

You are using the hwnd as a parameter.It should be handle to the window having the bitmap as far as I can see from here.