Location:
Search - owner draw
Search list
Description: Owner Draw Button Step-by-Step
Platform: |
Size: 20709 |
Author: |
Hits:
Description: UNZIP with directory preservation. This sample contains long file names. Uploaded on 24 April, 2000. The COLORLB sample shows how to implement an owner-draw list box. The box is drawn LBS_OWNERDRAWFIXED and also uses the LBS_HASSTRINGS style. The box allows you to individually set the color of each item in the box
Platform: |
Size: 53733 |
Author: 陈云 |
Hits:
Description: A Powerfull Ownerdraw Menu
A fully featured owner-draw menu class
CMenuXP is a class derived from CMenu using ownerdraw technology. I named it MenuXP because I expected it to be like the menus found in Office XP and Windows XP, but I failed to accomplish it. The main difficulty that I had was converting the 3D border of the menu into a flat one, but I hope it is still useful to you.
I constructed the class from the Scribble sample application and some of the drawing code is copied from the CCoolMenuManager class. Additionally, I have also used a class named CBCGKeyHelper from BCGControlBar to show the accelerator key text.-A Powerfull Ownerdraw Menu A fully featured owner-draw menu class CMenuXP is a class derived from CMenu using ownerdraw technology. I named it MenuXP because I expected it to be like the menus found in Office XP and Windows XP, but I failed to accomplish it. The main difficulty that I had was converting the 3D border of the menu into a flat one, but I hope it is still useful to you. I constructed the class from the Scribble sample application and some of the drawing code is copied from the CCoolMenuManager class. Additionally, I have also used a class named CBCGKeyHelper from BCGControlBar to show the accelerator key text.
Platform: |
Size: 66053 |
Author: 胡欣 |
Hits:
Description: There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written.
Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl. -There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written. Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl.
Platform: |
Size: 72314 |
Author: 刘亦菲 |
Hits:
Description: 一个按钮控件,
用法:
OnInitDialog()
构框,去owner draw 属性
m_btnLamp256.SubclassDlgItem(IDC_LAMP256, this)
m_btnLamp256.SetIcon(IDI_LAMP256, IDI_LAMP2)
// Don t draw border for this button
m_btnLamp256.DrawBorder(FALSE) -a button control, usage : OnInitDialog () configuration box to owner draw attributes m_btnLamp256.SubclassDlgItem (IDC_LAMP256, this) m_btnLamp256.SetIcon (IDI_LAMP256, IDI_LAMP2) / / Don t draw border for this button m_btnLamp256.DrawBorder (FALSE)
Platform: |
Size: 6652 |
Author: 胡立堂 |
Hits:
Description: The COLORLB sample shows how to implement an owner-draw list box.
Platform: |
Size: 26057 |
Author: 刘元琦 |
Hits:
Description: This applet demonstrates:1、receiving multiple files from a drag-drop operation 2、being a drag-drop source 3、optimizing the viewer for performance--creating thumbnails on the fly and owner draw issues 4、usability issues--changing image and form sizes and utilizing a non-paging scrollbar -This applet demonstrates : 1. receiving multiple files from a drag-drop oper.html ation 2, being a drag-drop source 3, optimizing performance for the viewer -- creat ing thumbnails on the fly and owner draw four issues , usability issues -- changing image and form sizes and utilizing a non-paging 9x15
Platform: |
Size: 10726 |
Author: 田巾 |
Hits:
Description: 如果你希望能够在自己的程序中表现出新意,那么你一定不会仅仅满足于MFC提供那些标准控件。这时,我们就必须自己另外多做些工作了。就改变控件外观这一点来说,主要是利用控件的自绘功能(Owner Draw)实现的。本篇将和各位一起定义一个XP风格的CXPButton按钮类,目的不在于介绍CXPButton类的使用技巧,而在于向各位阐述实现自绘按钮的方法。当然如果你觉得CXPButton有用的话,也可以把它的源文件保存下来,直接加入到自己的项目中。-if you hope to be able to own procedures demonstrated new and Then you will not only satisfy those standards for MFC controls. At this time, we must do more for himself the work. Change the appearance of controls on this point, the main use is drawn from the control function (Owner Draw) achievable. This will join you definition of an XP style button CXPButton category, not intended to introduce the use CXPButton type skills, but to explain to you realize decorated button method. Of course, if you think that CXPButton useful, it can also be the source document preservation, directly into their projects.
Platform: |
Size: 57109 |
Author: 王鹏飞 |
Hits:
Description: XGlyphButton - a simple image button control XGlyphButton is a simple CButton-based control that allows you to display an image without the need for owner-draw control.
Platform: |
Size: 29362 |
Author: 陆可 |
Hits:
Description: A problem with push button controls is that you cannot change the default drawing colors. WM_CTLCOLOR does not work for push buttons. The only way to use other colors for a push buttons is to use an owner-draw button and do the drawing by yourself.
By using CColorButton, you can:
Change, at any time, any of the seven colors needed to draw a button
Align the text at any position
Use multi-line text
Create buttons dynamically
Change the default font of the text
Platform: |
Size: 18307 |
Author: 小破孩 |
Hits:
Description: Owner Draw Button Helper Class
An intermediate class to create owner draw buttons
Platform: |
Size: 17711 |
Author: zeng |
Hits:
Description: CPushPinButton类继承于CButton类,功能是完成一个图钉按钮的效果。就像VC++中一个控件的属性对话框中的那个图钉按钮。 类的使用步骤: 1.在工程中加入PushPin.cpp和PushPin.h两个文件,并且在需要用到这个类的文件中加入#include \"PushPin.h\"语句。 2.确保工程中加入了图片IDB_PUSHPIN或者IDB_PUSHPIN_HELP 3.在对话框中加入一个按钮,设置owner-draw属性,大小不限。 4.使用Classwizard定义一个按钮的成员变量,然后用CPushPinButton代替CButton声明 5.为确保在按钮状态发生变化时,类能正常运行,还应该用ReloadBitmaps方法响应WM_SETTINGCHANGE或者WM_WININICHANGE消息。
Platform: |
Size: 19953 |
Author: wyb |
Hits:
Description: 背景:我用一个CListBox派生类实现宿主(owner-draw)列表框,这个列表框的项目宽度超过了列表框本身的宽度,因此当鼠标指针指向大宽度的列表框项时,我想显示一个类似Toolbar的提示窗口,在窗口中显示完整的列表框项目文本...
Platform: |
Size: 55699 |
Author: 段平平 |
Hits:
Description: 一个很酷的自画滚动条,值得参考,推荐下载--A cool scrolling bar of owner draw,recommend!
Platform: |
Size: 152576 |
Author: 站长 |
Hits:
Description: Owner Draw Button Step-by-Step-Owner Draw Button Step-by-Step
Platform: |
Size: 20480 |
Author: 肖伟强 |
Hits:
Description: UNZIP with directory preservation. This sample contains long file names. Uploaded on 24 April, 2000. The COLORLB sample shows how to implement an owner-draw list box. The box is drawn LBS_OWNERDRAWFIXED and also uses the LBS_HASSTRINGS style. The box allows you to individually set the color of each item in the box
Platform: |
Size: 53248 |
Author: 陈云 |
Hits:
Description: A Powerfull Ownerdraw Menu
A fully featured owner-draw menu class
CMenuXP is a class derived from CMenu using ownerdraw technology. I named it MenuXP because I expected it to be like the menus found in Office XP and Windows XP, but I failed to accomplish it. The main difficulty that I had was converting the 3D border of the menu into a flat one, but I hope it is still useful to you.
I constructed the class from the Scribble sample application and some of the drawing code is copied from the CCoolMenuManager class. Additionally, I have also used a class named CBCGKeyHelper from BCGControlBar to show the accelerator key text.-A Powerfull Ownerdraw Menu A fully featured owner-draw menu class CMenuXP is a class derived from CMenu using ownerdraw technology. I named it MenuXP because I expected it to be like the menus found in Office XP and Windows XP, but I failed to accomplish it. The main difficulty that I had was converting the 3D border of the menu into a flat one, but I hope it is still useful to you. I constructed the class from the Scribble sample application and some of the drawing code is copied from the CCoolMenuManager class. Additionally, I have also used a class named CBCGKeyHelper from BCGControlBar to show the accelerator key text.
Platform: |
Size: 65536 |
Author: 胡欣 |
Hits:
Description: There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written.
Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl. -There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written. Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl.
Platform: |
Size: 71680 |
Author: 刘亦菲 |
Hits:
Description: owner draw menu
对初学者有益-owner draw menu
Platform: |
Size: 30720 |
Author: matthew |
Hits:
Description: 一个CListBox扩展类,可以实现ListBox各行颜色不同,并且可以设置不可选择项。注:ListBox属性必须:Owner draw:Variable,Has strings选项打钩。-CListBox expand a category, you can achieve different color lines ListBox, and can not select items can be set. Note: ListBox properties must be: Owner draw: Variable, Has strings option打钩.
Platform: |
Size: 4096 |
Author: 何何 |
Hits: