Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > .NET > C#.NET > WS_CLIPCHILDREN与WS_CLIPSIBLINGS
【标  题】:WS_CLIPCHILDREN与WS_CLIPSIBLINGS
【关键字】:WS_CLIPCHILDREN,WS_CLIPSIBLINGS
【来  源】:http://blog.csdn.net/claider/archive/2007/04/18/1569659.aspx

WS_CLIPCHILDREN与WS_CLIPSIBLINGS

Your Ad Here 英文单词解释
clip:夹子、子弹夹、回形针;夹住,修剪
sibling:同胞兄弟或姐妹
overlapped:重叠

这两个Window Stype的特性与异同素来不太清楚,今日作一笔记:
MSDN的解释为:
  • WS_CLIPCHILDREN   Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.

  • WS_CLIPSIBLINGS   Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.


  • 此处另有一文的解释为:
     
    JohnCz
    06-27-2006, 09:40 PM
    It is not a property per se.
    WS_xxx are Window styles. Both clip of area of other window when window overlaps another window.
    Clip sibling for example will cause MDI child window to paint itself over another child window (sibling) when overlapped. The same will happen

    WS_CLIPCHILDREN will do exactly the same when parent overlaps child window.

    综上所述
    WS_CLIPCHILDREN,使得父窗体在绘制时留出其上的子窗体的位置不去画它,而那片区域留着子窗体去画。
    WS_CLIPSIBLING,必须用于子窗体,使得该子窗体在收到WM_PAINT时同时令其共父的诸多子窗体(MSDN讲必须不在该区域,即不与之重叠)也会被PAINT。

    参考连接:
    http://www.codeguru.com/forum/archive/index.php/t-391710.html
    《给初学者的Windows Vista的补遗手册》之077:【上一篇】
    WM_DRAWITEM/CWnd::OnDrawItem:【下一篇】
    【相关文章】
    没有相关文章
    【随机文章】
  • mail Server設定関連
  • VB图像处理之二次线性插值的应用
  • 关于E17 CVS0926版本中图标混乱的解决方法
  • ACE 示例2 --- Echo Server
  • 压缩-解压
  • Linux自由软件的安装
  • 8086/8088汇编语言指令集
  • 通过分层来体现 "有一个" 或 "用...来实现"
  • 在Linux(UNIX)下连接MS SQLserver的方法
  • linux下显示中文
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.