evc中怎么才能让对话框透明?

liuyuw 2004-09-05 12:51:56
我在OnCtlColor里写
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
static HBRUSH hbr1 =::CreateSolidBrush(RGB(255, 255, 255));//这里不知道些什么
// TODO: Change any attributes of the DC here
if(nCtlColor ==CTLCOLOR_DLG)
{
pDC->SetBkMode( TRANSPARENT );
return (HBRUSH)GetStockObject( NULL_BRUSH );

// return hbr1;
}
// TODO: Return a different brush if the default is not desired
return hbr;
但是怎么控制画刷hbr1呢?我试过NULL_BRUSH,也没什么用。。。到底应该怎么写啊?
...全文
63 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
wwch99 2004-09-06
  • 打赏
  • 举报
回复
hollow_brush ??

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧