how to set static text transparent in mfc

815 Views Asked by At

I am developing a ActiveX controls. which looks like an edit box with some extra added functionality. There is an label which is nothing but the static text. I am creating the static text as following,

m_hWnd = (HWND)CreateWindowExW(0, WC_STATICW, L"", dwStyle, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, m_Parent->m_hWnd, 0, 0, 0);

But the issue is the background color of the static text which is coming as white. I tried setting BkMode on the method onCtrlColor but nothing is working out.

0

There are 0 best solutions below