WS_CLIPSIBLINGS WS_OVERLAPPED WS_POPUP

来源:互联网 发布:表格软件怎么固定 编辑:程序博客网 时间:2024/05/16 05:30

所有的overlapped窗口和popup窗口,都有WS_CLIPSIBLINGS 属性,
这些窗口不能在它的sibling窗口上绘图

对于child窗口,如果没有这个属性,它能在它的sibling窗口上绘图

                 +-----------+
                  |A             |
                  |   +--------+-------
                  |   |        |    B |
                  |   | C        |        |
                  +---+-------+       |
                      |                    |
                      +---------------+
如果A, B都是child窗口,
如果A具有WS_CLIPSIBLINGS属性,
那么A重绘时不会重绘C部分

clip是裁减,去除的意思 相当与英文的Exclude

WS_OVERLAPPED    Creates an overlapped window. An overlapped window usually has a caption and a border

WS_POPUP     Creates a pop-up window. Cannot be used with the WS_CHILD style.

WS_CHILD    Creates a child window. Cannot be used with the WS_POPUP style.

  • 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.
  • 转自:http://hi.baidu.com/obi_wan/blog/item/39e7865cd6470a44faf2c030.html

    原创粉丝点击