sponsored links
Description

"A menu button control. Ownerdrawn button paint."
indir.biz Editor: The Menu Button control. Menu Button control is not rocket science, these controls also Windows 98 and Windows XP is an example to draw a ownerdrawn button.
Control as a regular button, except there is a Glyph manifests itself (right signal a small arrow) shows that when things click. All it does is to display a popup menu. Where would you click on the icon you can add custom drawn because it wanted to be colorful. Because the need for paint on the right button pop-glyph is also ownerdrawn.
Ownerdrawn problems with buttons, with Windows XP and the current theme, you must paint big. Before Windows XP was a matter of simply using BS_OWNERDRAWN style. Unfortunately, at the same time we also have to repaint all the external buttons meant to be. Since a button is always the same act, we very To draw () API can use DrawFrameControl.
Windows XP came along and completely changed. DrawFrameControl () no longer work in construction and Themes API will need to dip. Not good, too ... Windows Common Controls TreeView and ListView because the former ownerdraw new method: NM_CUSTOMDRAW notifications were introduced. Button control, and Windows XP that much (as well as behaviors that support a range former WM_DRAWITEM messages) takes over.
Under Windows XP tricks for drawing a button ownerdraw not to draw any button.
Button for parents WM_NOTIFY / NM_CUSTOMDRAW sends notifications. If you seriously wanted to change the appearance of the button, we will begin a special dye, but since you only want to add icons and some visual embellishments, the notification CDRF_NOTIFYPOSTPAINT code must answer. This is completely paint button directs Windows. When done, again with Windows NM_CUSTOMDRAW call us and provide us button image on the paint. Menu Button control can now download free 1.0.

sponsored links

COMMENTS

Sign in or register to leave a comment.

Visitor rates

4 Star  
  42

Member rates

4 Star  
  20

Ortalama oy:

3,8

1  2  3  4  5
4.545