请教!! 我在编辑框的属性中选择了Transparent, 但是为什么不能透明?请问如何是编辑框能和对话框的融背景为一体? 敬请赐教! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 HBRUSH CAsdfsdfdDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if(pWnd->GetDlgCtrlID()==IDC_EDIT1) { pDC->SetBkMode(TRANSPARENT); pDC->SetBkColor(GetSysColor(COLOR_BTNFACE)); hbr=(HBRUSH)(COLOR_BTNFACE+1); } // TODO: Change any attributes of the DC here // TODO: Return a different brush if the default is not desired return hbr;} 线程句柄 关于桌面的问题 win32 怎么样让listbox的vscroll处于最下面 VC编程的步骤是什么? 如何实现摄像头驱动钩子,即在其他摄像头应用软件得到帧前拦截摄像头捕获的图象帧?100分大放送 调用dll提供的函数,参数为什么变成这样 如何动态加载图标? 在线求解--初级问题 斑竹不要删帖子,这个问题很急。 MFC 如何判断某个ID对应的资源是否存在 谁能给我一个准确的解释? 哪里有字符串和URL编码进行转换的源代码或类?
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(pWnd->GetDlgCtrlID()==IDC_EDIT1)
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetBkColor(GetSysColor(COLOR_BTNFACE));
hbr=(HBRUSH)(COLOR_BTNFACE+1);
}
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return hbr;
}