I'm building a win32 C++ based application.
The background of the application window is the output from a video stream.
I'm displaying the video stream frame by frame through GDI+ as in the main window's WM_PAINT message.
I'm currently using "Static" text controls to display some textual information on top of the video stream.
I would like the background of the text to be trans parent so that the bitmap shows as the background
instead of the default background color of that static text control.
What is the best way to do that?
Currently, I've tried setting the window's style to:
WS_CHILD | WS_VISIBLE | WS_EX_TRANSPARENT,
and then doing this in my WndProc
HWND hCntl = (HWND)lParam;
SetTextColor((HDC)wParam, RGB(255, 0, 0));
This approach is not working.
What am I doing wrong here?
Is there a better way to implement this?