WS_CLIPSIBLINGS WS_OVERLAPPED WS_POPUP

所有的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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值