На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

SetBoundsRect



The SetBoundsRect function controls the accumulation of bounding rectangle information for the specified device context. Windows can maintain a bounding rectangle for all drawing operations. An application can examine and set this rectangle. The drawing boundaries are useful for invalidating bitmap caches.

UINT SetBoundsRect(

HDC hdc, // handle of device context
CONST RECT *lprcBounds, // address of rectangle coordinates
UINT flags // controls rectangle combination
);


Parameters

hdc

Identifies the device context for which to accumulate bounding rectangles.

lprcBounds

Points to a RECT structure used to set the bounding rectangle. Rectangle dimensions are in logical coordinates. This parameter can be NULL.

flags

Specifies how the new rectangle will be combined with the accumulated rectangle. This parameter can be a combination of the following values:

Value Description
DCB_ACCUMULATE Adds the rectangle specified by the lprcBounds parameter to the bounding rectangle (using a rectangle union operation). Using both DCB_RESET and DCB_ACCUMULATE sets the bounding rectangle to the rectangle specified by the lprcBounds parameter.
DCB_DISABLE Turns off boundary accumulation.
DCB_ENABLE Turns on boundary accumulation, which is disabled by default.
DCB_RESET Clears the bounding rectangle.


Return Values

If the function succeeds, the return value specifies the previous state of the bounding rectangle. This state can be a combination of the following values:

Value Meaning
DCB_DISABLE Boundary accumulation is off.
DCB_ENABLE Boundary accumulation is on. DCB_ENABLE and DCB_DISABLE are mutually exclusive.
DCB_RESET Bounding rectangle is empty.
DCB_SET Bounding rectangle is not empty. DCB_SET and DCB_RESET are mutually exclusive.


Remarks

The DCB_SET value is a combination of the bit values DCB_ACCUMULATE and DCB_RESET. Applications that check the DCB_RESET bit to determine whether the bounding rectangle is empty must also check the DCB_ACCUMULATE bit. The bounding rectangle is empty only if the DCB_RESET bit is 1 and the DCB_ACCUMULATE bit is 0.

See Also

GetBoundsRect, RECT


Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

SetBoundsRect



Функция SetBoundsRect регулирует накопление bounding информации прямоугольника для определенного контекста устройства. Windows может поддержать прямоугольник bounding для всех операций чертежа. Приложение может изучить и устанавливать этот прямоугольник. Рисующие границы полезные чтобы аннулировать кеши побитового отображения.

UINT SetBoundsRect(

HDC hdc, // РУЧКА контекста устройства CONST RECT *lprcBounds, // адрес координат прямоугольника UINT флагов // элементы управления прямоугольника комбинации
);


Параметры

hdc

Идентифицирует контекст устройства для которого, чтобы накапливать bounding прямоугольники.

lprcBounds

Точки на структуру RECT использованные, чтобы устанавливать прямоугольник bounding. Измерения Прямоугольника - в логических координатах. Этот параметр может быть НЕДЕЙСТВИТЕЛЕН.

флаги

Определяет как новый прямоугольник будет объединен накопленным прямоугольником. Этот параметр может быть комбинацией следующего величин:

Описание Величины
DCB_ACCUMULATE Добавляет прямоугольник определенный параметром lprcBounds в прямоугольник bounding (использование операции союза прямоугольника). Используя как DCB_RESET так и DCB_ACCUMULATE устанавливает прямоугольник bounding в прямоугольник определенный параметром lprcBounds.
DCB_DISABLE Выключает накопление границы.
DCB_ENABLE Включает накопление границы, которое выводится из строя по умолчанию.
DCB_RESET Очищает прямоугольник bounding.


Обратные Величины

Если функция добивается успеха, обратная величина определяет предшествующее состояние прямоугольника bounding. Это состояние может быть комбинацией следующего величин:

Значение Величины
накопление Границы DCB_DISABLE.
накопление Границы DCB_ENABLE включено. DCB_ENABLE и DCB_DISABLE взаимно исключительные.
прямоугольник DCB_RESET Bounding пустой.
прямоугольник DCB_SET Bounding не пустой. DCB_SET и DCB_RESET взаимно исключительные.


Замечания

Величина DCB_SET - комбинация битовых величин DCB_ACCUMULATE и DCB_RESET. Приложения, которые проверяют бит DCB_RESET, чтобы определять независимо прямоугольник bounding пустое должно также проверить бит DCB_ACCUMULATE. Прямоугольник bounding пустой только если бит DCB_RESET - 1 и бит DCB_ACCUMULATE - 0.

Смотри Также

GetBoundsRect, RECT


Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz