求CPropertySheet的控件 Tab改变的事件

振翅高飞 2014-08-19 12:26:59
CPropertySheet Tab改变的事件
CPropertySheet的一个控件现在我生成好了,占满了单文档客户区,现在有一事想请大家帮忙解决一下:
就是当我单击CPropertySheet控件A的Tab1时触发的事件消息是什么?我想在 Tab标签改变时触发一个处理过程函数。
现在急求触发的事件消息名字和添加方法。
...全文
99 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Eleven 2014-08-19
  • 打赏
  • 举报
回复
CPropertyPage::OnSetActive() This member function is called by the framework when the page is chosen by the user and becomes the active page. virtual BOOL OnSetActive( );
向立天 2014-08-19
  • 打赏
  • 举报
回复
找找有没有类似TVN_SELCHANGING的消息
振翅高飞 2014-08-19
  • 打赏
  • 举报
回复
引用 4 楼 VisualEleven 的回复:
囧,看清楚啊,是CPropertyPage类,不是CPropertSheet类。 CPropertyPage::OnSetActive();
好,结贴给分,都是CSDN的熟悉面孔啊。
振翅高飞 2014-08-19
  • 打赏
  • 举报
回复
引用 4 楼 VisualEleven 的回复:
囧,看清楚啊,是CPropertyPage类,不是CPropertSheet类。 CPropertyPage::OnSetActive();
,不好意思哈。
Eleven 2014-08-19
  • 打赏
  • 举报
回复
囧,看清楚啊,是CPropertyPage类,不是CPropertSheet类。 CPropertyPage::OnSetActive();
振翅高飞 2014-08-19
  • 打赏
  • 举报
回复
引用 2 楼 VisualEleven 的回复:
CPropertyPage::OnSetActive() This member function is called by the framework when the page is chosen by the user and becomes the active page. virtual BOOL OnSetActive( );
我在CPropertySheet的控件派生类的头文件和源文件中加了这个函数。但是运行后当我点击更改Tab属性页的时候没有触发断点没有调用这个OnSetActive()函数。不知为何?
1,01.zip
Toolbar - Custom status messages and tooltips
用户状态信息与工具提示(3KB)
2,02.zip
Remove system menu from floating toolbar
从浮动工具条中去除系统菜单(2KB)
3,03.zip
Remove close button from floating toolbar
从浮动工具条中去掉关闭按钮(2KB)
4,customizable1.zip
Customizable toolbar
可自定义的工具条(25KB)
5,detoolbar.zip
Adding a drop arrow to a toolbar button
带下拉框的工具条(28KB)
6,detoolbare.zip
Using Hot Toolbar Buttons
类似IE4的工具条(30KB)
7,BCGControlBar.zip
Customizable Toolbar and Menus
可自定义的工具条 (2)(318KB)
8,FixMiniFrame.zip
System menu fix for floating toolbar
更改浮动工具条中的系统菜单(24KB)
9,09.zip
DevStudio like Flat Toolbar
平面工具条 (需 IE3+)(5KB)
10,enh_flatbar.zip
Another Flat ToolBar (does not require MSIE)
另外一种平面工具条 (不需 IE)(81KB)
11,VSOMenu.zip
Visual Studio/Office 97 style Flat Toolbar and Dockable Menu bar
类似Visual Studio/Office 97 的平面工具条与可停靠菜单条(2)(200KB)
12,RebarMenu.zip
IE4 Style Menu (Rebar Menu)
类似IE4 的菜单条(72KB)
13,ToolbarHi.zip
Toolbar with 16M colour images
使用16M色图象的工具条(66KB)
14,multi12.zip
Extended Multi Size Multi Color Toolbar!
扩展型多尺寸多色彩工具条(226KB)
15,15.zip
How to display tooltips for a toolbar in a dialog
在对话框如何为工具条显示工具提示(3KB)
16,16.zip
Displaying text on a Toolbar
在对话框如何为工具条显示工具提示(2KB)
17,toolbar_d.zip
Docking Toolbars Side-By-Side
工具条的停靠(29KB)
18,toolbars.zip
Toolbars with Tooltips in a CFormView derived class
在CFormView派生类中使用带工具提示的工具条(29KB)
19,SwitchTB.zip
Switching Toolbars in MDI
MDI中具有开关显示功能的工具条(47KB)
20,Place Controls on ToolBars
在工具条中放置其他控件(10KB)
21,DialogBarEx1.zip
CDialogBarEx : A Dialog bar with initialization
CDialogBarEx :带初始化的对话条(42KB)

1,01.zip
Setting selected text to read-only
设置选择的文本为只读(2KB)
2,02.zip
Changing word wrap mode
改变换行模式(2KB)
3,03.zip
Changing tab stops
改变tab的行数(2KB)
4,04.zip
Inserting an RTF string using StreamIn
用RTF插入一个RTF字符串(3KB)
5,05.zip
Providing a Format toolbar
提供一个格式的工具框(8KB)
6,06.zip
convert RTF String RTF tags
变换字符串为RTF格式(7KB)
7,07.zip
CRichEditCtrlEx - Advanced Rich Edit Control
CRichEdit的继承类(21KB)
8,08.zip
The Richedit Ctrl used in chatting
在聊天程序中用Richedit(37KB)
9,09.zip
CRichEditCtrlEx : Replacing "RICHEDIT" control with "RichEdit20A"
替代RichEdit的类CRichEditCtrlEx(16KB)
10,10.zip
Controlling the RichTextCtrl Insert State
控制RichTextCtrl中Insert键状态(80KB)
11,11.zip
CAutoRichEditCtrl - automate rich edit formatting and RTF handling.
自动格式化RTF的继承类CAutoRichEditCtrl(62KB)

1,02.zip
Adding a Control to the Property Sheet
在属性页中添加控件(2KB)
2,06.zip
Using Shortcut Keys for Property Pages
在属性页中使用快捷键(2KB)
3,07.zip
Creating a Property Sheet Inside a Form View - Asaf Levy
在Form View中创建属性页(4KB)
4,08.zip
Creating a Property Sheet Inside a Dialog
在对话框中创建属性页(3KB)
12,18.zip
A resizable property sheet within a view
在视中改变property sheet的大小(4KB)
13,19.zip
overriding the default buttons on CPropertySheets
在CPropertySheets中覆盖默认按钮(2KB)
14,20.zip
Display only One Row of Tabs
只显示一行Tab选择(2KB)
15,21.zip
Add a Font Property Page
添加字体属性页(16KB)
16,22.zip
Resizing the Property Sheet
改变属性页的大小(2KB)
17,23.zip
Resizing the Tab Control
改变Tab控制的大小(2KB)
18,24.zip
Moving and Resizing the Property Pages
移动并改变属性页大小(3KB)
20,27.zip
Using ON_UPDATE_COMMAND_UI in Property Pages
在属性页中使用ON_UPDATE_COMMAND_UI(2KB)
22,29.zip
Inserting a CFormView into a CPropertySheet
将CFormView插入到属性页中(2KB)
23,30.zip
Using Upper- and Lowercase shortcut Keys for Property Pages
在属性页中使用大写和小写快捷键(2KB)
25,32.zip
Automaticaly arange visible controls below the tab control
TAB控制中使控件自动可见(2KB)
27,34.zip
Creating a wizard
创建一个向导(4KB)
21,propsheet1.zip
Propertysheets embedded in Dialogs
在对话框中嵌入Propertysheets(20KB)
24,propinprop.zip
Using shortcut keys in property pages containg property pages
在属性页中使用快捷键(74KB)
26,newprop.zip
Adding a Button to CPropertySheet
在属性页中添加按钮(19KB)
28,PropSheet.zip
Property Sheet Wizard
属性页Wizard(96KB)<96KB>
5,wizprop.zip
Wizard Property Sheets and Pages
Wizard方式的属性表与属性页(3KB)
6,creatingl.zip
Creating a full application using the CPropertySheet.
用CPropertySheet创建完整的应用程序(91KB)
7,updcreate.zip
Creating a full application using the CPropertySheet
更新: 用CPropertySheet创建完整的应用程序(12KB)
8,addbitmap.zip
Placing A Bitmap In The PropertySheet Button Area
将一个位图放到PropertySheet的按纽区域(2KB)
9,add3dtext.zip
Placing a 3D Logo Text In the PropertySheet Button Area
附加功能是控制PropertySheet区域特别是按纽部分的颜色(37KB)
10,proppage.zip
Modifying Property Sheet Templates on Win95
在Win95中修改属性页模板(2KB)
11,propview.zip
Using a modeless property sheet as a 'view' in a Frame
使用非模式的property sheet, 就像框架中的视(53KB)

1,VCMenu.zip
Visual Studio/Office 97 style Flat Toolbar and Dockable Menu bar
类似Visual Studio/Office 97的平面工具条与可停靠菜单条(350KB)
2,contentmenu.zip
A Cool Looking Menu For Easier Navigation
一个很COOL的菜单条(39KB)
3,freemenu.zip
Owner Drawn Menu With Free Color & Font
可使用任意字体与颜色的自画式菜单(35KB)
4,04.zip
Owner Drawn Menu with Icons
带图标的自画式菜单(5KB)
5,05.zip
Owner Drawn Menu with Icons (2)
带图标的自画式菜单(2)(8KB)
6,owner_menu4.zip
Owner Drawn Menu with Icons (4) (automatically uses toolbar res)
带图标的自画式菜单(4) (自动使用工具条对应资源)(109KB)
7,bitmapmenu.zip
Yet another owner draw menu
更新"带图标的自画式菜单"(2)(6KB)
8,bcmenu24.zip
Owner Drawn Menu with Icons (3)
带图标的自画式菜单(3) (使用工具条资源)(62KB)
9,09.zip
Inserting submenus in an existing SDI menu
在SDI菜单中插入子菜单(2KB)
10,10.zip
TrackPopupMenu as an Immediate Function
使用 CMenu::TrackPopupMenu 跟踪弹出菜单的菜单项(2KB)
11,Creating Popup Menus with Titles
Creating Popup Menus with Titles
带提示的弹出式菜单(5KB)
12,12.zip
Finding a menu item position from command id
从Command ID中寻找菜单项(3KB)
13,13.zip
The simplest way to put the MRU list in a submenu
将MRU列表加入子菜单的简单途径(2KB)
14,14.zip
Using MRU on a submenu
在子菜单中使用MRU(3KB)
15,15.zip
MRU list in a submenu: the MFC bug and how to correct it.
子菜单中的MRU列表: 更正MFC bug(3KB)
16,16.zip
Merging Two Menus
合并两个菜单(3KB)

1,03.zip
Serializable CListCtrl with check sum verify(4KB)
连续的列表项的校验和
2,11.zip
Getting the number of columns in report view
获得列表视图的列数(2KB)
3,12.zip
添加一列
Adding a column(2KB)
4,13.zip
Detecting column index of the item clicked
监测单击项的索引(13KB)
5,14.zip
Prevent CListCtrl column resizing
禁止调整列表控制的大小(2KB)
6,16.zip
How to force a minimum column width
限定一个最小列宽(16KB)
7,17.zip
Autosize a column to fit its content
自动调整列的大小(3KB)
8,18.zip
Stationary Columns
固定的列数(4KB)
9,19.zip
Disable clicking on selected report view columns
禁止鼠标在列表视图单击(2KB)
10,21.zip
Dragging columns to rearrange column sequence
重新排列次序(6KB)
11,22.zip
Dragging Items to Rearrange Rows
重新排列行数(5KB)
12,24.zip
Allowing items to be edited
允许列表项编辑(2KB)
13,27.zip
Using a drop down list to change a subitem
用托放改变子项(10KB)
14,GridList.zip
Multiline Editable Subitems
多列可编辑的子项(95KB)
15,subitems2.zip
Editing listview subitems using LVM_GETEDITCONTROL
用LVM_GETEDITCONTROL事件来编辑列表视图(46KB)
16,32.zip
Drawing horizontal and vertical gridlines
画水平和竖直的网格线(9KB)
17,33.zip
List control with single / double separator lines
带有一个/两个分割线的列表控制(10KB)
18,34.zip
Subclassing the List View Control using MFC
用MFC写的列表视图子类(3KB)
19,35.zip
Catching header messages in a CListView
捕捉CListView的头消息(2KB)
20,36.zip
How do I use a derived CListCtrl with a CListView?
怎样使用来源于CListCtrl的列表视图(2KB)
21,40.zip
Using sub-strings in non report view
获得报表视图的子串(2KB)
22,Treelist.zip
TreeList : Multi column tree control
多列的树性列表控制(79KB)
23,43.zip
Connect a list container to a tree/list control
连接一个列表容器到列表控制(4KB)
24,listclass1.zip
Class with full row highlighting
高亮文本的列表框(8KB)
25,46.zip
IE4 Extended Styles in a list control
和IE4类似的列表控制(4KB)
26,sorted_Class.zip
CSortedListCtrl reusable base class
可以再度使用的排序列表基类(61KB)
27,48.zip
Measure Item for dynamic font changing in a list control
动态的改变列表控制的字体(2KB)
28,supergrid.zip
SuperGrid - Yet Another listview control(84KB)
用Listview写的网格控制
29,clistie4.zip
Class for using new features in listview control
列表视图的子类(5KB)
30,51.zip
Plug-in class to support printing from a listview
列表视图的插件类 (6KB)
31,52.zip
Print the contents of the list control
打印列表视图的内容(7KB)
32,property12.zip
Creating an Object Property List using the CListCtrl
用ClistCtrl类创建一个属性列表(57KB)
33,56.zip
Retrieving selected items
找回选择的项的内容(2KB)
34,57.zip
Selecting and deselecting a range of rows
选择和反选择一定范围的行(2KB)
35,58.zip
Selection Highlighting of Entire Row
选择高亮整行(12KB)
36,59.zip
Set focus on a cell
设置一个单元获得焦点(2KB)
37,60.zip
Sorting the list based on text in any column
按列表的文本排序(3KB)
38,61.zip
Sorting list on Numeric Column
按列表的数值排序(2KB)
39,62.zip
Sort list based on text/numeric/date-time in any column
按列表的文本\数值\时间排序(3KB)
40,63.zip
Sort list (numeric/text) using callback
用回调函数按数值/文本排序 (3KB)
41,64.zip
Sort columns by the image index of the column
通过图像索引排序(3KB)
42,66.zip
Sorting the list when user clicks on column header
当用户单击列标题时排序(3KB)
43,67.zip
Indicating sort order in header control
指示列标题的排序(5KB)
44,68.zip
Simple list Sorting on Integer Colum
按列表的数值排序(2KB)
45,69.zip
A Multi Column Sort listview
一个多列排序的列表视图(37KB)
46,70.zip
Determining row indices in SortItems() Comparison function
用SortItems函数监测行复数(3KB)
47,75.zip
Handling Title Tips With Drag/Drop Headers Using The Visual C++ 6.0 CListCtrl
处理标题的提示(3KB)
48,76.zip
Attaching System ImageList to ListControl
附带系统图像的列表控制(3KB)
49,77.zip
Initializing the image list
初始化图像列表(2KB)
50,78.zip
Setting or removing an image for an item
设置和删除项中的图像(78KB)
51,79.zip
Setting a non-standard size image
设置一个非标准的图像(4KB)
52,83.zip
List Control displaying image thumbnails
在列表控制中显示小图像(23KB)
1,01.zip
3D Text
显示3D文字(6KB)
2,02.zip
A button within a button
按纽中的按纽(13KB)
3,03.zip
Flat Owner Drawn Buttons
浮动的自画按纽(13KB)
4,04.zip
Flat-look Buttons
浮动的工具条按纽(6KB)
5,05.zip
Showing disabled combo text in black
ComboBox的只读属性(5KB)
6,06.zip
Combobox Color Picker
选择颜色的ComboBox(6KB)
7,07.zip
Switch between drop down & drop list mode
处理drop down和drop list方式之间的转换(32KB)
8,08.zip
Drop down a popdown window instead of a dropdown list from a combobox 在ComboBox中用Drop down方式代替dropdown list方式(32KB)
9,09.zip
Change listbox width of combo boxes
在ComboBox中改变列表框的宽度(2KB)
10,10.zip
Owner Drawn Font Selection ComboBox
自画的字体选择ComboBox(5KB)
11,add.zip
This sample was developed on stage at the Washington Software Association's WinSIG meeting on the ninth of September, 1996 using Visual C++ 4.2. (13KB)
12,apibrow.zip
The project demonstrates the use of common control callback items in an MFC applicationthat manages a CListCtrl control in a CListView. (16KB)
13,colorlb.zip
The COLORLB sample shows how to implement an owner-draw list box. (53KB)
14,comper.zip
COMPER is an example of the ATL Composite Control. (123KB)
15,custfile.zip
This sample shows how to add a couple of extra buttons to a CFileDialog. (23KB)
16,custlist.zip
CUSTLIST shows how to use custom draw in a list view control. (23KB)
17,div.zip
This sample shows how floating-point exceptions may be captured and handled in an MFC application. (14KB)
18,doodads.zip
The project demonstrates many Windows common controls, including the extensive use of image lists. (83KB)
19,doubleedit.zip
DOULBEEDIT shows how to sublcass an edit control inside a form view and react to double-clicks on the edit control by handling the WM_LBTNDOUBLECLICK message. (18KB)
20,dumpsome.zip
DUMPSOME is a project for Visual C++ 4.x that shows how to write a CGI server extension which uses MFC and DAO. (8KB)
21,edpos.zip
EDPOS is a MDI-based MFC application that shows an edit control in its primary view. (35KB)
22,edstream.zip
this sample shows how to use the StreamIn() and StreamOut() members of the CRichEditCtrl class in MFC. (36KB)
23,findrich.zip
RICHFIND is a dialog-based MFC application for Visual C++ 6.0. (24KB)
24,floatlist.zip
The FloatList sample is an MFC-based SDI application with an edit view as its main window. (49KB)
25,fully.zip
FULLY shows how to make an MFC application make one of its views go full-screen active. (43KB)
26,holder.zip
HOLDER contains the Internet Explorer web browser control using CHtmlView in an MFC application. (67KB)
27,langload.zip
LANGLOAD shows how to use the LANGUAGE keyword in a resource file to mark language-specific resources. (2KB)
28,listfind.zip
This sample shows how to use the CList<> template. (9KB)
29,ndbrow.zip
This Visual C++ 6 project shows how to create an MDI application that hosts CHtmlView (20KB)
30,mfctalk.zip
MFCTALK was originally published with Mike's article on ISPAI programming with MFC in the May (23KB)
31,mfctlist.zip
MCTTLIST is a dialog-based application that provides the same functionality as the TLIST sample in the SDK. (28KB)
32,mruless.zip
MRULESS shows a way to strip the empty "Recent Files" item off the "File" menu when there are no entries in the MRU. (32KB)
33,mtprint.zip
MTPRINT demonstrates the use of a secondary thread to perform printing in an application that uses MFC's document/view architecture. (21KB)
34,multitop.zip
MULTITOP shows how to write an SDI application which has multiple top level windows and uses the MFC doc/view architecture.(30KB)
35,njfind16.zip
This 16-bit DOS tool traverses all directories on all drives on your machine and finds files which match the template you specify. (33KB)
36,noform.zip
This sample shows how to make an application that doesn't have the doc/view architecture but still offers a form in the client area of the application's main window. (33KB)
37,odcombo.zip
ODCOMBO.ZIP is a VC++ 6.0 dialog-based project that contians an onwer-drawn combo box. (23KB)
38,picknew.zip
It demonstrates calling CDocTemplate::OpenDocumentFile(). (49KB)
39,primecon.zip
PrimeCon is a VC++ 6.0 sample which uses MFC in a console application.(60KB)
40,q1.zip
Q1 is a VC++ 6.0 project that creates two threads. (79KB)
41,scrl.zip
This dialog-based application shows how to use the CListCtrl::Scroll() member. (14KB)
42,spinrange.zip
SpinRange is a VC++ 6.0 project that shows how to subclass a CSpinButtonControl to dramatically extend the range of the control. (24KB)
43,splits.zip
This VC++ 5.0 project shows how to manage views within a splitter window. (36KB)
44,stealth.zip
This SDI application shows how to create an application that doesn't show up in the task bar in Windows 95 or Windows NT 4.0. (29KB)
45,tenhook.zip
Because the Windows dialog manager eats all keystrokes, you'll need to install a Windows keyboard hook if you want to get keyboard input to your dialog without other controls getting in the way. (19KB)
46,treestore.zip
Tree views are capable of storing hierarchical data, which isn't intuitively serialized. (41KB)
47,writeres.zip
This console application shows how to bake resources into console applications. (566KB)
48,xctrl.zip
The XCTRL sample is an ATL "full control" ATL Control. (100KB)
49,Button_Tute.zip
How to get a button control wired-in and working(34KB)
50,BetterBmpButton_src.zip
An improvement on the CBitmapButton class.(22KB)
51,hoverbutton.zip
A simple drop-in class that provides a 'hot' look button using the _TrackMouseEvent function(17KB)
52,CLedButton_src.zip
A button that looks like a LED.(24KB)
53,EllipticalButtons.zip
A class that turns rectangular buttons into elliptic buttons.(29KB)
54,RoundButtons.zip
A class that turns rectangular buttons into round buttons.(17KB)
55,AniButton.zip
A class that show AVIs inside a button.(49KB)
56,CButtonST26.zip
A fully featured owner-draw button class - it's got the lot!(225KB)
57,coolbtn.zip
This article shows the use of a Push button with a drop down menu, similar to the one found in the Office 2000 suite.(31KB)
58,CustomButtons.zip
A class to make working with radio buttons easier, and another for custom drawing buttons(45KB)
59,CWBButton.zip
CWBButton is a resizable bitmap button like GTK+ or Window Blinds.(44KB)
60,ComboDropWidth.zip
A simple tutorial explaining how to set the width of a combo dropdown list so that all items are fully visible(18KB)
61,ComboBox_Tut_demo.zip
An entry level tutorial on using the CComboBox control(65KB)
62,ListBox_Tut_src.zip
An entry level tutorial on using the CListBox control(62KB)
63,BitmapPickerCombo.zip
A combo box that can be used to display bitmaps(26KB)
64,mccombobox.zip
A multicolumn, customizable, editable combobox(27KB)
65,disableditemscombobox_src.zip
combobox with disabled items(3KB)
66,checkcombo.zip
A combo box with check boxes(21KB)
67,ColourPickerCB.zip
A combobox derived class that provides a simple color picker(36KB)
68,ComboBoxInit_src.zip
Learn how to programmatically initialize a combo box.(3KB)
69,IconComboBox_src.zip
2 Freeware MFC icon selection combo box classes(19KB)
70,ComboCompletion_demo.zip
A combobox that autocompletes as you type(17KB)
71,IDComboDemo.zip
An extremely simple but useful CComboBox entension(12KB)
72,MRUCombo.zip
A combobox that encapsulates the functionality of CRecentFileList(29KB)
73,combobox_flatcombo.zip
A drop-in replacement combobox that gives your apps the flat Office-style look(53KB)
74,readonlycombo_src.zip
Show a disabled dropdown style combobox like a read only edit box.(2KB)
75,VBLikeCombo.zip
Creates a combo box similar to those in Visual Basic.(27KB)
76,ComboTree.zip
ComboBox with a tree control drop down(36KB)
77,multichecklistbox.zip
Extends the CCheckListBox class to have multiple check box columns(19KB)
78,disableditemslistbox_src.zip
Listbox with disabled items.(2KB)
79,ImageLB.zip
A list box for viewing images(25KB)
80,LVCustomDraw.zip
Using the custom-draw features in version 4.70 of the common controls to customise the look and feel of list controls(28KB)
81,ListCtrlDemo.zip
Everything you need to know about using the standard list control in your applications(68KB)
82,filedroplistctrl.zip
This article explains how to support file drag and drop in your CWnd-derived object(40KB)
83,DrivePickerList.zip
A control that shows drive names and icons like Explorer(23KB)
84,ListEditor.zip
This article shows you how you can navigate through a multi-column, editable list view(42KB)
85,LogControl_src.zip
Learn how to use printf-like functionality to debug your GUI applications.(46KB)
86,PropertyListCtrl.zip
An object properties list control than can change based on the objects state.(64KB)
87,supergrid.zip
A combination list control and tree control with checkbox capability(87KB)
88,Listview_callback.zip
Shows how to use text callbacks in list controls(16KB)
89,HeaderCtrlEx.zip
How to make the CListCtrl's header Multiline(29KB)
90,listPrint_demo.zip
Printing the contents of a CListCtrl or CListView with multiple pages(56KB)
91,TreeListCtrlGerolf.zip
A custom-drawn tree-list hybrid, with explanations on how the control was developed.(39KB)
92,PrtTView_demo.zip
Code to add printing capabilities to a Tree View(32KB)
93,treelist.zip
A tree control / list control hybrid(81KB)
94,FileTree_src.zip
Implements a tree control similar to the left hand side of Windows Explorer.(46KB)
95,TreeOpt_src.zip
A freeware MFC class to provide a tree options control.(32KB)
96,ShTree.zip
A very simple manager for shared folders using tree control drag & drop (42KB)
97,NetworkTreeCtrl.zip
A CWaitingTreeCtrl-derived class to display network resources(40KB)
98,ProgressHourglassFX.zip
Two animation provider classes to add animation effects to any CWaitingTreeCtrl-derived class(33KB)
99,ShellTreeCtrl.zip
A CWaitingTreeCtrl-derived class to display Shell's resources(39KB)
100,WaitingTreeCtrl_src.zip
A CTreeCtrl derived class that populates the branches of a tree only when necessary, with optional visual effects.(5KB)
101,PathPicker.zip
An article on Browsing my computer and the network using a TreeCtrl(82KB)
102,Tree2Excel.zip
This article is a light sample showing how to iterate and export a tree control content to an Excel file.(44KB)
103,lbtab.zip
A better looking tab control(89KB)
104,CXTabControl_demo.zip
An easier tab control(32KB)
105,ResizableProperties.zip
Two CPropertySheet/CPropertyPage derived classes to implement resizable property sheets or wizard dialogs with MFC(96KB)
106,saprefs.zip
A base class for a prefereneces dialog, similar to that used in Netscape(39KB)
107,wizardpropertysheet_src.zip
A simply class to turn CPropertySheet into wizard mode without needing to alert the property pages within(2KB)
108,AutoRichEditCtrl.zip
CAutoRichEditCtrl - automate rich edit formatting and RTF handling(49KB)
109,AutomaticSplitter.zip
A tutorial that shows how to automatically split a view, and also how to indicate which view has the focus(31KB)
110,usefulsplitter.zip
An extension to MFCs CSplitterWnd that provides splitter locking and dynamic view replacement(25KB)
111,rulers_src.zip
Using fixed panes to add rulers to your view(5KB)
112,StaticCtrl_Tut_demo.zip
An entry level tutorial on using the CStatic control(64KB)
113,rotated_bevel.zip
A bevelline control that displays vertical and horizontal text(83KB)
114,Ticker.zip
A class that provides a news/stock ticker for your MFC applications(47KB)
115,StaticCounter.zip
A control to display time, floating point numbers or integers using an LED digital-style display(41KB)
116,CStaticTime.zip
A control to display times and numbers using an LED digital-style display(52KB)
117,alexf_histogram.zip
A simple histogram control for displaying data(23KB)
118,static_fader.zip
A CStatic class that gently fades text into view(99KB)
119,CLabel_demo.zip
A fully stocked owner drawn CStatic class(52KB)
120,DigiString.zip
A control to display text or numbers with a 14 or 7 segment display(176KB)
121,cstatic_filespec.zip
Lightweight class for displaying long filespecs that may need to be truncated(16KB)
122,tip_static.zip
A tip-of-the-day control that uses a cool sliding effect to show each tip(133KB)
123,UsingCtrlsInDialogs_Tut_demo.zip
An entry level tutorial on using one of the Windows Common Controls in a dialog(42KB)
124,CmdUIDemo.zip
A C++/MFC sample how to implement UI notifications for user-defined controls(15KB)
125,SubclassDemo.zip
An introduction to subclassing the Windows common controls using MFC(19KB)
126,CustomControl.zip
An introduction to creating custom controls using MFC(22KB)
127,graph2d.zip
A comprehensive set of classes for displaying 2 dimensional data(386KB)
128,3dMeter_demo.zip
An Analog Meter Control for displaying real-time data(42KB)
129,analog_meter.zip
A control that displays a numerical value as an analog meter(45KB)
130,oscope.zip
A control that graphically displays numerical information(31KB)
131,swing_demo.zip
A set of MFC classes the duplicate the Java Swing look and feel(76KB)
132,ReportCtrl.zip
An Outlook 98/2000 Style SuperGrid Report Control that tries to overcome some of the weaknesses of other implementations.(179KB)
133,controls_pager.zip
This article presents a wrapper class for the pager control(28KB)
134,RulerCtrl.zip
A simple ruler control to allow users to set margins or indents(21KB)
135,CSizer.zip
A class that provides the ability to move and size controls at run-time (34KB)
136,controls_avi_demo.zip
Demonstrates the use of the windows animation control(145KB)
137,CMapPin_src.zip
A Freeware MFC class to implement Map pins.(286KB)
138,CFCtrl.zip
The simplest way to change color, font or set blinking mode for any standard control(53KB)
139,CPushPin_src.zip
A Freeware MFC PushPin button class.(15KB)
140,CWndSlider.zip
An article on using an Outlook style window slider control.(98KB)
141,cxwndAnimate_demo.zip
An animation control that uses a bitmap imagelist instead of an AVI file(25KB)
142,hyperlink.zip
A simple drop-in hyperlink control(28KB)
143,ViewObjSnap.zip
How to take a snapshot of an OCX without using HWNDs.(38KB)
144,lbspin.zip
A spin button whose arrows automatically disable themselves when they are at their maximum or minimum value.(27KB)
145,SubclassWnd_demo.zip
A plug in class that allows you to intercept and handle messages for any window class(266KB)
146,resize_at_runtime_demo.zip
A method to allow the user to visually resize and position any control at run time(15KB)
147,RoundSliderCtrl.zip
A round slider control to allow users to adjust an angle or similar values(90KB)
148,EasyFavorite.zip
An application demonstrating the windows Thumbnail control(42KB)
149,TGroupBox.zip
A very simple group box replacement to enhance your user interface(3KB)
150,WndImg.zip
An easy-to-use control to display bitmaps (stretch, scale, tile)(128KB)
151,URLCell_src.zip
A new class that adds hyperlink support to the MFC Grid Control(3KB)
152,gridctrl.zip
A fully featured MFC grid control for displaying tabular data. The grid is a custom control derived from CWnd(381KB)
153,GridTreeCtrl.zip
A set of classes derived from CGridCtrl that embed a tree control, button controls, and virtual cells within the grid(221KB)
154,gridctrl_demo220.zip
Explains how to use comboboxes to edit cells in the MFC Grid Control(203KB)
155,AddHTMLy.zip
A quick and simple example of using MSHTML to modify the DOM(36KB)
156,Process_HTMLFORM.zip
A simple method to processing HTML forms From a CHtmlView(60KB)
157,ColorButton.zip
A simple modification to Chris Maunder's "Office 97 style Colour Picker" control(44KB)
158,ColorSpace_demo.zip
A replacement color picker control allowing you full visual control over RGB and HSB selections(288KB)
159,ColorDlg.zip
A simple color chooser dialog that uses slifer controls to allow the user to combine different RGB values(37KB)
160,choicelistbutton_demo.zip
A dropdown menu button with checkbox menu items(25KB)
161,HotList.zip
A control for selecting items from a list, with tool tips and mouse tracking(33KB)
162,colour_picker.zip
A simple drop in color chooser control(54KB)
163,progresswnd.zip
A popup window containing a progress control and cancel button - no resource file needed(34KB)
164,ProgressCtrlX.zip
An enhanced progress control that supports gradient shading, formatted text, 'snake' and reverse modes, and vertical modes(80KB)
165,GradientProgressCtrl.zip
Subclasses the standard CProgressCtrl to allow for gradient fills. Supports vertical progress controls as well.(52KB)
166,piectrl.zip
A progress control with a difference(149KB)
167,text_progressctrl_demo.zip
A smooth progress control with text(15KB)
168,ProgressBar.zip
An easy way to add a progress control to a status bar(33KB)
169,ProgressTimeToComplete.zip
A progress control that tells the user how long an operation has left to complete(26KB)
170,IProgressDialog_demo.zip
A wrapper class for the progress dialog provided by IE 5.(20KB)
171,rotary.zip
A rotary knob similar to that used in the Windows 2000 CD Player(67KB)
172,SizeDemo.zip
An MS-Word like drop down window for creating tables(37KB)
173,ToolTipEx.zip
A drop-in multiline extendable tooltip control(1052KB)
174,Multiline_Titletips_demo.zip
A class that allows you to display data for a control that is otherwise not large enough to display the full text(23KB)
175,CHtmlView_Search_demo.zip
Could be used to create a Visual C++ like search combo for CHtmlViews...
Update: Now you can highlight all matching words!(36KB)
176,AssociationGrid.zip
Grid control with vertical column headers.(85KB)
各种消息框的的应用1 创建一个DLG程序 2 添加5个新的对话框资源ID分别为:MsgBoxSimple,MsgBoxOption,MsgBoxCustom,并调整其大小使他们尺寸一样 3 为2中所添加的对话框创建新的类 class CPageSimple : public CPropertyPage class CPageOption : public CPropertyPage class CPageCustom : public CPropertyPage 保存在property.h和property.cpp中。 4 在ShowBmpInPropertyBtnAreaDlg.h中加入 #i nclude "property.h" ... public: CPropertySheet m_MyPropertySheet; //定义属性表变量 CPageSimple m_page1; //以下定义属性页成员变量 CPageOption m_page2; CPageCustom m_page3; 5 在对话框IDD_MESSAGEBOXES模板中加入一个Picture控件,ID设为IDC_PROPSHEET,并调整其大小使其与对话框MsgBoxSimple大小相似 6 在CMessageBoxesDlg::OnInitDialog()中加入 //属性表和属性页的成员变量我已经在头文件中定义过了 //现在把属性页加入到属性表中 m_MyPropertySheet.AddPage(&m_page1); m_MyPropertySheet.AddPage(&m_page2); m_MyPropertySheet.AddPage(&m_page3); //显示非摸态的属性表 m_MyPropertySheet.Create(this, WS_CHILD | WS_VISIBLE, 0); //当对话框搜索下一个Tab项时,WS_EX_CONTROLPARENT标记避免了死循环发生的可能性 //他可以让对话框搜索到属性表中的子窗体控件,就象对话框窗体上的其他普通控件一样。 m_MyPropertySheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT); //允许用户TAB键切换到属性表 m_MyPropertySheet.ModifyStyle( 0, WS_TABSTOP ); //显示属性表 CRect rcSheet; GetDlgItem( IDC_PROPSHEET )->GetWindowRect( &rcSheet ); ScreenToClient( &rcSheet ); m_MyPropertySheet.SetWindowPos( NULL, rcSheet.left-7, rcSheet.top-7, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE ); 7 添加一些按钮,映射各按钮的单击消息,并为响应函数编写代码如下 void CPageSimple::OnSimplestBtn() { MessageBox("这是最最简单的消息框"); } void CPageSimple::OnSimpleBtn() { AfxMessageBox("另一个简单的消息框"); } void CPageOption::OnOkBtn() { MessageBox("仅仅一个按钮确定的消息框", "信息提示消息框", MB_OK|MB_ICONINFORMATION); m_Message = "你只是确认了一下"; UpdateData(FALSE); } void CPageOption::OnOkcancelBtn() { int Response; Response = MessageBox("在这个消息框中你可以选择确定和取消" "\n\n你也可以在此写下对行信息文本" "\n这是你的权利", "选择消息框", MB_OKCANCEL|MB_ICONASTERISK); if( Response == IDOK ) { m_Message = "你选择了确定"; UpdateData(FALSE); } else { m_Message = "你取消了"; UpdateData(FALSE); } } void CPageOption::OnYesnoBtn() { int Response; Response = MessageBox("你吃过了吗?我意思是指从昨天到现今", "信息提示", MB_YESNO|MB_ICONQUESTION); if( Response == IDYES ) { m_Message = "那么,我不需要再给你什么了"; UpdateData(FALSE); } else { m_Message = "那么走吧,正好我也没有吃,咱们一块去吃火锅!"; UpdateData(FALSE); } } void CPageOption::OnYesnocancelBtn() { int Response; Response = MessageBox("当你删除一个目录的时候,或者一个文档改动后," "\n退出程序的时候,这个消息框就会出现", "文档保存提示消息框", MB_YESNOCANCEL|MB_ICONWARNING);

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧