На главную

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 | Скачать Вниз

Tooltip Style



There is only one class-specific style associated with toolbars: TBSTYLE_TOOLTIPS. When you specify this style, the toolbar creates and manages a tooltip control. A tooltip control is a small pop-up window that contains a line of text describing a toolbar button. The tooltip control is hidden and appears only when the user puts the cursor on a toolbar button, leaving it there for approximately one second. The tooltip control is displayed near the cursor.

When the toolbar receives a WM_MOUSEMOVE message, it sends a notification message to the tooltip control. The tooltip control sets a timer, and after approximately one second, checks if the cursor is still at the same location and is on a toolbar button. If it is, the tooltip control sends the TTN_NEEDTEXT notification message to the parent window to retrieve the descriptive text for the button. Then the tooltip control creates a pop-up window and displays the text in the window. The tooltip control destroys the pop-up window when the user clicks a mouse button or moves the cursor out of the toolbar.

An application that needs to send messages directly to the tooltip control can retrieve the handle of the tooltip by using the TB_GETTOOLTIPS message. An application can replace the tooltip control of a toolbar by using the TB_SETTOOLTIPS message. For more information about tooltip controls, see Tooltip Controls.


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

Стиль Tooltip



Есть только один класс-специфический стиль связывался toolbars: TBSTYLE_TOOLTIPS. Когда Вы определяете этот стиль, toolbar создает и управляет управлением tooltip. Управление tooltip является небольшим управляющим окном, которое содержит строку текста, описывающую кнопку toolbar. Управление tooltip спрятано и появилось только когда потребитель устанавливает курсору на кнопке toolbar, отъезда, которые он там для приблизительно одной секунды. Управление tooltip отображено около курсора.

Когда toolbar получает сообщение WM_MOUSEMOVE, он посылает уведомлению сообщение на управление tooltip. Управление tooltip устанавливает таймер, и после приблизительно один секунда, чеки если курсор - все еще в той же позиции и находится на кнопке toolbar. Если это, управление tooltip посылает сообщение уведомления TTN_NEEDTEXT в родительское окно, чтобы извлекать описательный текст для кнопки. Затем управление tooltip создает управляющее окно и отображает текст в окне. Управление tooltip уничтожает управляющее окно когда потребитель щелкает кнопку мыши или перемещает курсор из toolbar.

Приложение, что нужно посылать сообщения непосредственно на управление tooltip может извлечь ручку tooltip используя сообщение TB_GETTOOLTIPS. Приложение может заменить управление tooltip toolbar используя сообщение TB_SETTOOLTIPS. Более подробно о tooltip элементах управления, смотри Элементы управления Tooltip.


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