请教!! 我在编辑框的属性中选择了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;} CDateTimeCtrl选择一个时间时获取此时间? VC2005 中如何修改资源对话框的窗口类名 定时刷新屏幕的问题。 关于VC6和Direct9x的版本兼容性问题! 如何用vc来开发activex dll (没有界面的activex) 请问:如何取得 RectVisible 所用的 ClipRgn 如何捕获CControlBar的OnClose消息? 在SDI程序中,怎样实现在程序开始运行时选择是否分拆窗口? 救命呀!!!再次求助ISAPI 通过post获取表单对象的问题 视图切换的问题。 谁能给我一个准确的解释? 哪里有字符串和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;
}