We do not always find visible happiness in proportion to visible virtue

梦幻白桦林

SHARE

  C++博客 :: 首页 :: 联系 :: 聚合  :: 管理
  14 Posts :: 58 Stories :: 62 Comments :: 0 Trackbacks

公告

常用链接

留言簿(5)

搜索

  •  

最新随笔

最新评论

阅读排行榜

 //根据路径创建不规则窗体
 CDC* pDC;

 pDC = this->GetDC();
 ::BeginPath(pDC->m_hDC);
 
 //设置为透明模式 
 ::SetBkMode(pDC->m_hDC, TRANSPARENT);  
 //
 RECT rect;
 this->GetClientRect(&rect);
 /*三角型
 int TopCenterPoint=rect.left + (rect.right - rect.left) /2;
 pDC->MoveTo(TopCenterPoint, rect.top);
 pDC->LineTo(rect.left, rect.bottom - GLOBAL_OVERLEN);
 pDC->LineTo(rect.right, rect.bottom - GLOBAL_OVERLEN);
 pDC->LineTo(TopCenterPoint,rect.top);
 */

 /*比较奇怪的矩形
 pDC->MoveTo(rect.left, rect.top);
 pDC->LineTo(rect.right, rect.top);

 pDC->LineTo(rect.right, rect.bottom - GLOBAL_OVERLEN);

 pDC->LineTo(rect.left + (rect.right - rect.left) / 2, rect.bottom - GLOBAL_OVERLEN);
 pDC->LineTo(rect.left + (rect.right - rect.left) / 2, rect.bottom);
 pDC->LineTo(rect.left + (rect.right - rect.left) / 2 - GLOBAL_OVERWIDTH, rect.bottom - GLOBAL_OVERLEN);

 pDC->LineTo(rect.left, rect.bottom - GLOBAL_OVERLEN);
 pDC->LineTo(rect.left, rect.top);
 */
 //
 
 ::EndPath(pDC->m_hDC);
 hRgn = ::PathToRegion(pDC->m_hDC);
 this->SetWindowRgn(hRgn, TRUE);

posted on 2007-05-24 23:08 colys 阅读(254) 评论(0)  编辑 收藏 引用 所属分类: C++

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理