0

当我使用WS_EX_STATICEDGE时,我发现左右边框颜色为灰色(160、160、160),而上下边框颜色为白色。

我们可以将整个边缘设置为灰色吗?(使用纯winapi)

4

1 回答 1

3

The border is painted by operating system and there are no implications as for the edge to be painted with solid color. Instead it is current theme, which is applied and being used for painting.

Answering your question directly, yes you can make it. You can take over non-client area painting in your window and handle WM_NCPAINT yourself. It is however something you are not supposed to do unless you are doing some very specific customization.

于 2012-07-02T15:19:57.953 回答