Window Class Styles是tagWNDCLASSEXA的style属性定义预设

MSDN原贴:Window Class Styles tagWNDCLASSEXA 以下为Window Class Styles参数的谷歌翻译(瞎

本来想做表格的 但是发现随笔这个表格制作手感特别的shi 我决定还是自己排版

宏对应的数值没有语义 在这里就不提了 有兴趣可以直接去看api里面的定义 或者查MSDN

CS_BYTEALIGNCLIENT

Aligns the window's client area on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.

在窗口边界(x方向)上对齐窗口的客户区域。 此样式会影响窗口的宽度及其在显示屏上的水平位置。

CS_BYTEALIGNWINDOW

Aligns the window on a byte boundary (in the x direction). This style affects the width of the window and its horizontal placement on the display.

在窗口边界(x方向)上对齐窗口。 此样式会影响窗口的宽度及其在显示屏上的水平位置。

CS_CLASSDC

Allocates one device context to be shared by all windows in the class. Because window classes are process specific, it is possible for multiple threads of an application to create a window of the same class. It is also possible for the threads to attempt to use the device context simultaneously. When this happens, the system allows only one thread to successfully finish its drawing operation. 

分配一个设备上下文以供类中的所有窗口共享。 由于窗口类是特定于进程的,因此应用程序的多个线程可以创建同一类的窗口。 线程也可以尝试同时使用设备上下文。 发生这种情况时,系统只允许一个线程成功完成其绘图操作。

CS_DBLCLKS

Sends a double-click message to the window procedure when the user double-clicks the mouse while the cursor is within a window belonging to the class. 

当用户在属于该类的窗口内双击鼠标时,向窗口过程发送双击消息。

CS_DROPSHADOW

Enables the drop shadow effect on a window. The effect is turned on and off through SPI_SETDROPSHADOW. Typically, this is enabled for small, short-lived windows such as menus to emphasize their Z-order relationship to other windows. Windows created from a class with this style must be top-level windows; they may not be child windows.

CS_GLOBALCLASS

Indicates that the window class is an application global class. For more information, see the "Application Global Classes" section of About Window Classes.

指示窗口类是应用程序全局类。 有关更多信息,请参阅关于窗口类的“应用程序全局类”部分。

CS_HREDRAW

Redraws the entire window if a movement or size adjustment changes the width of the client area.

如果移动或大小调整更改客户区的宽度,则重绘整个窗口。

CS_NOCLOSE

Disables Close on the window menu.

禁用窗口菜单上的关闭。

CS_OWNDC

Allocates a unique device context for each window in the class. 

为类中的每个窗口分配唯一的设备上下文。

CS_PARENTDC

Sets the clipping rectangle of the child window to that of the parent window so that the child can draw on the parent. A window with the CS_PARENTDC style bit receives a regular device context from the system's cache of device contexts. It does not give the child the parent's device context or device context settings. Specifying CS_PARENTDC enhances an application's performance. 

将子窗口的剪切矩形设置为父窗口的剪切矩形,以便子窗口可以在父窗口上绘制。 具有CS_PARENTDC样式位的窗口从系统的设备上下文缓存中接收常规设备上下文。 它不会向子项提供父项的设备上下文或设备上下文设置。 指定CS_PARENTDC可增强应用程序的性能。

CS_SAVEBITS

Saves, as a bitmap, the portion of the screen image obscured by a window of this class. When the window is removed, the system uses the saved bitmap to restore the screen image, including other windows that were obscured. Therefore, the system does not send WM_PAINT messages to windows that were obscured if the memory used by the bitmap has not been discarded and if other screen actions have not invalidated the stored image. 
This style is useful for small windows (for example, menus or dialog boxes) that are displayed briefly and then removed before other screen activity takes place. This style increases the time required to display the window, because the system must first allocate memory to store the bitmap.
此样式对于短暂显示然后在其他屏幕活动发生之前被删除的小窗口(例如,菜单或对话框)非常有用。 这种样式增加了显示窗口所需的时间,因为系统必须首先分配内存来存储位图。

CS_VREDRAW

Redraws the entire window if a movement or size adjustment changes the height of the client area.

如果移动或大小调整更改客户区的高度,则重绘整个窗口。

 

毕竟机翻 可能会有特有名词被翻译的情况 仅供参考(如果不是我英语菜 会这样?

转载于:https://www.cnblogs.com/alingcat/p/10429704.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值