Class Styles

The class styles define additional elements of the window class.
Two or more styles can be combined by using the bitwise OR (|) operator.
To assign a style to a window class, assign the style to the style member
of the WNDCLASSEX structure. The class styles are as follows.

Style Action
CS_BYTEALIGNCLIENT Aligns the window‘s client area on a byte boundary
(in the x direction) to enhance performance during
drawing operations. This style affects the width of
the window and its horizontal placement on the display.

CS_BYTEALIGNWINDOW Aligns the window on a byte boundary (in the x
direction) to enhance performance during operations
that involve moving or sizing the window.
This style affects the width of the window and its
horizontal placement on the display.

CS_CLASSDC Allocates one device context to be shared by all
windows in the class. For more information about
device contexts, see Class and Private Device Contexts
and Device Contexts.

CS_DBLCLKS Instructs Windows to send 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.
For more information about double-clicks, see Mouse Input.

CS_GLOBALCLASS Specifies that the window class is an application
global class. For more information, see Application
Global Classes.

CS_HREDRAW Specifies that the entire window is to be redrawn if
a movement or size adjustment changes the width of the
client area.

CS_NOCLOSE Disables the Close command on the System menu.
CS_OWNDC Allocates a unique device context for each window in
the class. For more information about device contexts,
see Class and Private Device Contexts and Device Contexts.

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. For more information
about device contexts, see Class and Private Device Contexts and Device
Contexts.

CS_SAVEBITS Saves, as a bitmap, the portion of the screen image obscured by a
window. Windows uses the saved bitmap to re-create the screen image
when the window is removed. Windows displays the bitmap at its original
location and does not send WM_PAINT messages to windows obscured by
the window if other screen actions have not invalidated the stored
image. Use this style for small windows that are displayed briefly and
then removed before other screen activity takes place (for example,
menus or dialog boxes). This style increases the time required to
display the window, because the operating system must first allocate
memory to store the bitmap.

CS_VREDRAW Specifies that the entire window is to be redrawn if
a movement or size adjustment changes the height of
the client area.

时间: 2024-10-20 09:26:09

Class Styles的相关文章

[React Native] Animate Styles of a React Native View with Animated.timing

In this lesson we will use Animated.timing to animate the opacity and height of a View in our React Native application. This function has attributes that you can set such as easing and duration. import React, {Component} from 'react'; import {Text, V

React Native 一个组件styles BUG

'use strict'; var React = require('react-native'); var { StyleSheet, PanResponder, View, Text } = React; var CIRCLE_SIZE = 40; var PanResponderExample = React.createClass({ componentWillMount: function() { this._panResponder = PanResponder.create({ o

The maximum number of cell styles was exceeded. You can define up to 4000 styles

POI操作Excel中,导出的数据不是很大时,则不会有问题,而数据很多或者比较多时, 就会报以下的错误,是由于cell styles太多create造成,故一般可以把cellstyle设置放到循环外面 报错如下: Caused by: java.lang.IllegalStateException: The maximum number of cell styles was exceeded. You can define up to 4000 styles in a .xls workbook

Android篇---Styles和Themes常见用法可能疑点小结

1.style和theme的区别: 简而言之,style指的就是安卓中一个UI控件的样式,而themes指的是安卓中一个activity界面或者整个安卓应用整体的样式.theme的范围比style的范围大. 2.style的继承用法:(全由笔者根据官方文档亲测,可放心使用,注意:样式的定义都在/res/values/style.xml中,而样式的使用在activity的布局文件里) 对于继承安卓原装style,用法如下代码块,代码的意思是将安卓系统自带的TextAppearance样式中的tex

从源码中浅析Android中如何利用attrs和styles定义控件

一直有个问题就是,Android中是如何通过布局文件,就能实现控件效果的不同呢?比如在布局文件中,我设置了一个TextView,给它设置了textColor,它就能够改变这个TextView的文本的颜色.这是如何做到的呢?我们分3个部分来看这个问题1.attrs.xml  2.styles.xml  3.看组件的源码. 1.attrs.xml: 我们知道Android的源码中有attrs.xml这个文件,这个文件实际上定义了所有的控件的属性,就是我们在布局文件中设置的各类属性 你可以找到attr

Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layou

android无法静态显示ui效果. Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style 'textViewStyle' in current theme 採用的解决方法例如以

[Vue] Update Attributes, Classes and Styles in Vue.js with v-bind

Use v-bind:class and v-bind:style to compute html classes and inline styles from component data. Vue.js will automatically add vendor prefixes when using v-bind:style. <body> <div id="card"> <header>{{ title }}</header> &

Styles and Themes

[Styles and Themes] A 样式 is a collection of properties that specify the look and format for a View or window. A style can specify properties such as height, padding, font color, font size, background color, and much more. A style is defined in an XML

Styles in Windows Phone

1. Use resources in internal style file: <Application.Resources> <ResourceDictionary Source="MyResources.xaml" /> </Application.Resources> 2. Use external style file: <Application.Resources> <ResourceDictionary Source=