how to transparent the background of edit box in m

2019-08-18 17:44发布

问题:

In this there is one static control text in blue background and edit box has text. Now I want to transparent the background of edit box. I am new in mfc vc++. I am trying to transparent the background of edit box.but till now I am not getting expected result.

if ( pWnd->GetDlgCtrlID() == IDC_editbox)//
{
    pDC->SetTextColor(RGB(255, 255, 0));
pDC->SetBkColor(TRANSPARENT);
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)::GetStockObject(NULL_BRUSH);
 }
标签: winapi mfc