社区
C#
帖子详情
tree view控件在web form怎么添加啊,在tool box里面么有看到这个控件啊!
octpan
2003-07-23 03:22:30
谢谢!
...全文
39
3
打赏
收藏
tree view控件在web form怎么添加啊,在tool box里面么有看到这个控件啊!
谢谢!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
dahuzizyd
2003-07-24
打赏
举报
回复
首先,定义一个全局静态变量:
static string CurrentNodeIndex;
在下面的事件里:
private void TreeView1_SelectedIndexChange(object sender, Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e)
{
CurrentNodeIndex = TreeView1.SelectedNodeIndex;
}
写一个函数,得到这个值:
public void GetAllNodeText(Microsoft.Web.UI.WebControls.TreeNodeCollection tnc,string SelectIndex)
{
foreach (Microsoft.Web.UI.WebControls.TreeNode node in tnc)
{
GetAllNodeText(node.Nodes,SelectIndex);
if (SelectIndex == node.GetNodeIndex())
{
CurNode = node;
}
}
}
再调用:
public bool AddNode(Microsoft.Web.UI.WebControls.TreeNodeCollection treeNode,string ID,string txt,string SelectIndex)
{
int exist = 0; //用于判断要添加的节点在当前节点的子节点中是否有相同的节点
Microsoft.Web.UI.WebControls.TreeNode NewNode = new Microsoft.Web.UI.WebControls.TreeNode(); //生成新的节点
NewNode.Text = txt;
NewNode.ID = ID;
GetAllNodeText(treeNode,SelectIndex);
foreach (Microsoft.Web.UI.WebControls.TreeNode node in CurNode.Nodes )
{
if ( node.Text == NewNode.Text )
{
exist = 1;
return false;
}
}
if ( exist != 1)
{
CurNode.Nodes.Add(NewNode);
return true;
}
else
{
return false;
}
}
webtreeview比较麻烦,winform的就简单多了,也差不多。
octpan
2003-07-23
打赏
举报
回复
安装以后呢?谢谢!
wujevons
2003-07-23
打赏
举报
回复
MS有IE WebControls,需要单独下载安装
Visual C++ 编程资源大全(英文源码
控件
)
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
Combo
Box
的只读属性(5KB)
6,06.zip
Combo
box
Color Picker
选择颜色的Combo
Box
(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 combo
box
在Combo
Box
中用Drop down方式代替dropdown list方式(32KB)
9,09.zip
Change list
box
width of combo
box
es
在Combo
Box
中改变列表框的宽度(2KB)
10,10.zip
Owner Drawn Font Selection Combo
Box
自画的字体选择Combo
Box
(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 CList
View
. (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
view
s go full-screen active. (43KB)
26,holder.zip
HOLDER contains the Internet Explorer
web
browser control using CHtml
View
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 CHtml
View
(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 per
form
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,no
form
.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
view
s 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,
tree
store.zip
Tree
view
s 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,Combo
Box
_Tut_demo.zip
An entry level tutorial on using the CCombo
Box
control(65KB)
62,List
Box
_Tut_src.zip
An entry level tutorial on using the CList
Box
control(62KB)
63,BitmapPickerCombo.zip
A combo
box
that can be used to display bitmaps(26KB)
64,mccombo
box
.zip
A multicolumn, customizable, editable combo
box
(27KB)
65,disableditemscombo
box
_src.zip
combo
box
with disabled items(3KB)
66,checkcombo.zip
A combo
box
with check
box
es(21KB)
67,ColourPickerCB.zip
A combo
box
derived class that provides a simple color picker(36KB)
68,Combo
Box
Init_src.zip
Learn how to programmatically initialize a combo
box
.(3KB)
69,IconCombo
Box
_src.zip
2 Freeware MFC icon selection combo
box
classes(19KB)
70,ComboCompletion_demo.zip
A combo
box
that autocompletes as you type(17KB)
71,IDComboDemo.zip
An extremely simple but useful CCombo
Box
entension(12KB)
72,MRUCombo.zip
A combo
box
that encapsulates the functionality of CRecentFileList(29KB)
73,combo
box
_flatcombo.zip
A drop-in replacement combo
box
that gives your apps the flat Office-style look(53KB)
74,readonlycombo_src.zip
Show a disabled dropdown style combo
box
like a read only edit
box
.(2KB)
75,VBLikeCombo.zip
Creates a combo
box
similar to those in Visual Basic.(27KB)
76,Combo
Tree
.zip
Combo
Box
with a
tree
control drop down(36KB)
77,multichecklist
box
.zip
Extends the CCheckList
Box
class to have multiple check
box
columns(19KB)
78,disableditemslist
box
_src.zip
List
box
with disabled items.(2KB)
79,ImageLB.zip
A list
box
for
view
ing 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 check
box
capability(87KB)
88,List
view
_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 CList
View
with multiple pages(56KB)
91,
Tree
ListCtrlGerolf.zip
A custom-drawn
tree
-list hybrid, with explanations on how the control was developed.(39KB)
92,PrtT
View
_demo.zip
Code to add printing capabilities to a
Tree
View
(32KB)
93,
tree
list.zip
A
tree
control / list control hybrid(81KB)
94,File
Tree
_src.zip
Implements a
tree
control similar to the left hand side of Windows Explorer.(46KB)
95,
Tree
Opt_src.zip
A freeware MFC class to provide a
tree
options control.(32KB)
96,Sh
Tree
.zip
A very simple manager for shared folders using
tree
control drag & drop (42KB)
97,Network
Tree
Ctrl.zip
A CWaiting
Tree
Ctrl-derived class to display network resources(40KB)
98,ProgressHourglassFX.zip
Two animation provider classes to add animation effects to any CWaiting
Tree
Ctrl-derived class(33KB)
99,Shell
Tree
Ctrl.zip
A CWaiting
Tree
Ctrl-derived class to display Shell's resources(39KB)
100,Waiting
Tree
Ctrl_src.zip
A C
Tree
Ctrl 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
Tree
Ctrl(82KB)
102,
Tree
2Excel.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
form
atting 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 in
form
ation(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,
View
ObjSnap.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,TGroup
Box
.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,Grid
Tree
Ctrl.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 combo
box
es 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_HTML
FORM
.zip
A simple method to processing HTML
form
s From a CHtml
View
(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 check
box
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,
form
atted 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,
Tool
TipEx.zip
A drop-in multiline extendable
tool
tip 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,CHtml
View
_Search_demo.zip
Could be used to create a Visual C++ like search combo for CHtml
View
s...
Update: Now you can highlight all matching words!(36KB)
176,AssociationGrid.zip
Grid control with vertical column headers.(85KB)
VB编程资源大全(英文源码
控件
)
1 , vb5dialog.zipThis demonstrates how to subclass the Common Dialog Dialogs and manipulate a specific Dialog.2 , cpnl.zip
Form
_Taskbar is a control for Visual Basic which, once placed onto a
form
, makes the
form
act like the Taskbar (minus the Start Menu).3 , vbo_progbar.zipImplement a common control progress bar with added features that are not accessable using COMCTL32.OCX! 4 , vbo_infolabel.zipThis control adds a great user-friendly interface with and icon and "Hover" ability. Based on a control seen in ICQ. 5 , vbo_checkcombo.zipAdd a check
box
to a combo
box
and use it to enabled/disable the combo! or whatever you would like to do with it! 6 , vbo_controlframe.zipCreate your own system button such as a Maximize, Minimize, Close, and many others with ease! 7 , vbo_ctext
box
.zipThis class makes using the Text
box
or Edit class API simple. Easily set properties and access many features not available directly from VB. 8 , taskbar.zip
Form
_Taskbar is a control for Visual Basic which, once placed onto a
form
, makes the
form
act like the Taskbar (minus the Start Menu).9 , NT_Service.zipThis is an OCX that allows you to create an NT service application...add the control to your project and register it as a service!!10 , Scroller.zipThis is a Control Container, it's like a frame control but it lets you scroll the content up and down...11 , TrayArea.zipThis control lets you add your icon to the System Tray Area and handle some events such as MouseMove, MouseDown, MouseUp and DblClick.12 , Resizer.zipThis is a very useful control: It's a container control, you can insert two controls inside and then you'll have a vertical (or horizontal) resizer bar (like the Windows File Explorer). A resizer can contain another resizer... an so on. (you can divide you
form
in as many sizable sections as you want...).13 , Label3D.zipTh
Visual C++ 编程资源大全(英文源码 表单)
1,01.zipMFC Extension LibraryMFC扩展界面库, 使用Visual C++ 6.0(15KB)2,02.zipVisual Studio style UIVisual Studio风格的界面效果(15KB)3,03.zipInternet Explorer 4 style UIIE4.0风格的界面效果(29KB)4,04.zipOutlook Style UIOutlook风格的界面效果(16KB)5,05.zipDynamic child window repositioning动态改变对话框的大小, 对话框中的
控件
相应改变(15KB)6,06.zipEnhanced list control增强的List
控件
(43KB)7,07.zipCDialog using animated control在CDialog中使用动画(12KB)8,08.zipOpen Dialog with Bitmap Pre
view
位图预览的打开文件对话框(43KB)9,09.zipStandard file open dialog with pre
view
标准位图预览的打开文件对话框(24KB)10,10.zipBitmap Dialog Class位图对话框类(13KB)11,11.zipClass for Browsing shell namespace with your own dialog显示目录的树型结构, 可用于目录的选择(31KB)12,12.zipUsing ON_UPDATE_COMMAND_UI with dialogs在对话框中使用ON_UPDATE_COMMAND_UI(13KB)13,13.zipUsing ON_UPDATE_COMMAND_UI with dialogs (2)使用ON_UPDATE_COMMAND_UI(11KB)14,14.zipModeless child dialog in a Main Dialog with corrected tab order非模式对话框在主对话框中的TAB顺序(21KB)15,15.zipCostumizing CFileDialog定制的CFileDialog(22KB)16,16.zipAttaching Elements to Borders一个可以在对话框中改变按纽位置、大小的容器(26KB)17,17.zipScrolling credits dialog滚动信用对话框(12KB)18,18.zipColor Dialog with Persistent Custom Colors对话框继承了上一次的颜色风格(12KB)19,19.zipA Base Dialog Class for Modal/Modeless Dialog with Custom Background Color自定义背景的对话框(13KB)20,20.zipParse IP addresses解析IP地址(12KB)21,21.zipParse phone fields解析电话区域(11KB)22,22.zipChanging the default file open/save dialogs in an MFC doc/
view
application初始化对话框和支持动态数据交换(DDX)(15KB)23,23.zipDialog with Splash Screen Example Code...Splash对话框的例子(18KB)24,24.zipClass to select directory选择目录的类(13KB)25,25.zipClass to select directory (Enhancements)增强的选择目录的类(12KB)26,26.zipDirectory Picker Dialog目录采集对话框(42KB)27,27.zipSimple way to change dialog's background and text colors改变对话框背景颜色和文字颜色的简单途径(11KB)28,28.zipA Simple Dialog Layout Manager一个简单的对话框设计管理器(19KB)29,29.zipUsing Buttons on a Dialog Bar with CCmdUI通过CCmdUI在对话框条中使用按纽(19KB)30,30.zipDisplay help for dialog controls on the status bar在状态条中显示对话框中
控件
的帮助信息(12KB)31,31.zipDragging a dialog by clicking anywhere on it点击任何地方拖动对话框(11KB)32,32.zipSplash screen with text on it that uses its own thread通过自己的线程在Splash对话框中显示文字(136KB)33,33.zipCreating an expanding dialog创建一个可扩展的对话框(15KB)34,34.zipExpanding/Contracting Dialog
Box
扩展/缩小对话框(24KB)35,35.zipCFileDialog class that only displays folders让CFileDialog只显示目录(很有用)(2KB)36,36.zipFolder Browsing Dialog目录浏览对话框(3KB)37,37.zipFont dialog with custom text pre
view
& color字体对话框中增加字体和颜色的预览(12KB)38,38.zipEmbedding an HTML Help window into a dialog嵌入一个超文本(HTML)的帮助窗口到对话框中(22KB)39,39.zipDialog which can be used as MDI child window使用MDI子窗口的对话框(13KB)40,40.zipConvert modal dialogs to modeless将模式对话框转换成非模式对话框(12KB)41,41.zipNetscape 4.x Preferences Dialog类似Netscape 4.x参数选择的对话框(7KB)42,42.zipHandling OnUpdate() processing for menu itemsOnUpdate()处理菜单项(5KB)43,43.zipOptions
Tree
Dialog树状的配置对话框(25KB)44,44.zipCustomizing the font dialog定制的字体对话框(4KB)45,45.zipSizable dialogs at its easiest轻松改变对话框的大小(5KB)46,46.zipA Snap Size Dialog Class一个捕获对话框大小的类(5KB)47,47.zipCSplitterWnd in a Dialog based Application一个基于对话框的应用(6KB)48,48.zipSplash Screen with 256 color support支持256色的Splash对话框(7KB)49,49.zipSubselection Dialog 子项选择的对话框(5KB)50,50.zipSwitching dialog
box
es in a dialog-based application在基于对话框应用中切换对话框(5KB)51,51.zipBetter Tip of the Day dialog典型的Did you konw...对话框(26KB)52,52.zip
Tool
bars and Statusbars on Dialogs在对话框中增加工具条和状态条(7KB)53,53.zip
Tool
tips in modal dialog
box
es在模式对话框中实现工具提示(6KB)54,54.zip
Tool
tips for dialog controls实现对话框
控件
的工具提示(4KB)55,55.zipTransparent Dialog透明的对话框(5KB)56,56.zip
View
ing Dialog Template Resources at Runtime运行时看对话框模板资源(5KB)57,57.zipAlternative Wizard Dialog一个Wizard对话框, 在安装程序中也有用(5KB)58,58.zipAVL
Tree
实现AVL(Addison-Velski and Landis)树结构(5KB)59,59.zipTemplate class to manipulate bits of undefined type一个操作未知类型的模板库(5KB)60,60.zipBlowfish EncryptionBlowfish加密算法加密(4KB)61,61.zipBlowfish encryption classBlowfish加密类(5KB)62,62.zipExpression Evaluation数学公式识别类(5KB)63,63.zipA Y2.038K-Safe Replacement for CTimeCTime的替换类(5KB)64,64.zipIterating through List Containers关于List容器的话题(5KB)65,65.zipLexical Analyser词汇分析(8KB)66,66.zipLocales and Facets in Visual C++VC++的许多细节话题(10KB)67,67.zipA Generalized Parsing Class for MFC一个普通的MFC解析类(5KB)68,69.zipCreating Singleton Objects using Visual C++使用VC++创建一个单独的对象(9KB)69,69.zipSmart Pointers and other Pointer classes指针类(5KB)70,70.zipSortable CObArray class对CObArray类排序(5KB)71,71.zipSortable CObList class对CObList类排序(6KB)72,72.zipExtension to the STL find_if and for_each扩充STL库(5KB)73,73.zipChange from child window to popup window (and back) 将一个子窗口改成弹出式窗口(5KB)74,74.zipRestoring Window Position With Multiple Monitors在多层监视器中恢复窗口的位置(5KB)75,75.zipTransparent Window透明的窗口(6KB)76,CenterMDIWnd_demo.zipCenter CMDIChildWnds in the client area of the main frame window(151KB)77,TabbedMDI.zipA variation on the MDI that indicates the open child windows in a tab control. (400KB)78,AdvancedPrev.zipA simple class that helps provide faster Print Pre
view
within MFC Doc/
View
applications(38KB)79,mditab.zipA dockable bar containing a tabbed list of open windows(91KB)80,CloseUnusedDocs_src.zipClosing unused MDI documents with 1 line of code(2KB)81,graphfx_demo.zipA Doc/
View
framework for displaying graphical data(192KB)82,WindowsManager.zipImplementing "Windows..." dialog(39KB)83,MultiMRUList_src.zipThis article describes how to maintain the separate MRU list for each document type that is needed in some applications(26KB)84,MultiTop.zipAllows an application to have multiple top-level windows. (22KB)85,PersistFrames.zipA collection of classes that allows MFC SDI and MDI applications to remember the positions and sizes of their main frame and child frame windows. (71KB)86,step0.zipA series of articles that resulted from experimenting with adding Drag and Drop features to my existing application. (16KB)87,undo.zipEasily add Undo/Redo to your CDocument/C
View
Based Applciation(2KB)88,Property
View
.zipA "Property Sheet"-like
view
class for MFC (108KB)89,Doc
View
WTL.zipA library that provides the easiest way to get loosely coupled components. (156KB)90,Dialog2.zipA step by step tutorial showing how to create your first windows program using MFC(112KB)91,MyMDIApp.zipA brief step-by-step tutorial that demonstrates creating an SDI and MDI based applications using the MFC Doc/
View
architecture.(54KB)92,sditutorial_demo.zipA brief step-by-step tutorial that demonstrates creating an SDI based application that does not use the MFC Doc/
View
architecture.(15KB)93,QuickWin.zipRedirect stdin, stdout and stderr into a window(125KB)94,GradientTitleBar.zipThis article shows you how to give your Win95/NT4 modeless dialogs a Win98/W2K like gradient title bar.(42KB)95,Msg
Box
Demo.zipThe system Message
Box
that is closed atuomatically after some time(21KB)96,step1.zipSimple step by step article explaining how to create a modeless dialog
box
as child window.(21KB)97,step2.zipSimple step by step article explaining how to create a modeless dialog
box
as sibling of the app's main window.(22KB)98,ResizableDialog.zipA CDialog derived class to implement resizable dialogs with MFC (98KB)99,CenterAnywhere_demo.zipThis is a good replacement for CWnd::CenterWindow() that works. (43KB)100,CardDialog.zipA auto-sizing dialog used to store and display smaller child dialogs(22KB)101,scrolling_credits.zipA Scrolling Credits Dialog(209KB)102,snapdialog.zipDialog class that implement a snap-to-screen-border feature like Winamp(16KB)103,message
box
.zipA class which encapsulates Message
Box
Indirect.(18KB)104,rfldlg.zipThis article demonstrates how to add a recent file list to a dialog based application(25KB)105,dialogspl_demo.zipSplash screens are not only for Doc/
View
based applications(142KB)106,CClockCtrl_src.zipA Freeware MFC class to display an analog clock.(17KB)107,ChildDlg.zipChild Dialog (Sub
Form
s)(29KB)108,CIconDialog_src.zipA Freeware MFC dialog class to select an icon.(12KB)109,CPushPinFrame_src.zipA Freeware MFC PushPin property page dialog class.(19KB)110,showhide.zipA neat way to show/hide groups of related controls(13KB)111,ResizeCtrl.zipA resize control to implement resizable dialogs with MFC(38KB)112,DDXFile_src.zipA Freeware DDX routine for selecting a filename.(29KB)113,DynWindow_src.zipDescribes a method to implement resizable child windows.(108KB)114,DynamicDialog.zipCreate dialogs dynamically, and easily, without the need for a dialog resource script.(40KB)115,DlgExpand.zipThis article shows gives you the ability to make your dialogs expand or contract, depending on how much in
form
ation the user wishes to
view
(15KB)116,TipDemo.zipImproved Tip-of-the-Day Dialog(149KB)117,layoutmgr.zipA framework to provide automatic layout control for dialogs and
form
s(101KB)118,MainWndPlacement.zipSave/restore the main window size at application exit/startup with a single function call in MDI, SDI and dialog based applications.(29KB)119,sizer_demo.zipAn article on extendable layout management classes(27KB)120,Splasher_src.zipAn improved splash screen component for MFC.(62KB)121,StackDialog.zipCreating a stacked dialog such as Netscape's 'Preferences' dialog(22KB)122,bitmappre
view
dialog_src.zipThis article describes a completely object oriented standard file open dialog with pre
view
.(12KB)123,subselect_dialog.zipSubselection Dialog(123KB)124,TabDialog.zipA docking dialog that auto-expands when the mouse passes over it(35KB)125,TcxMsg
Box
.zipTCX Message
Box
(derived from CWnd)(35KB)126,
Tool
Tips.zipA demonstration of how to show
tool
tips in modal dialog bozes(23KB)127,UpdateModalDlg_demo.zipHow to update a modal dialog contents using a callback function(17KB)128,WinampWnd_demo.zipAn article discussing a Plugin for Nullsoft Winamp which looks and behaves like the Winamp UI.(43KB)129,Skins.zipA mini library to build Bitmap based skinnable apps.(174KB)130,FaderWnd_demo.zipAn MFC class to fade any window with only one line of code.(28KB)131,Win2kFileDlg.zipEver wanted to use the new Office 2000 file dialogs on Win 95/98/NT/Me, including the file pre
view
ing? Well now you can.(76KB)132,win2000fd.zipHow to show the new Common File Dialog in MFC Apps in Windows 2000(36KB)133,Wizard2000.zipCreate Windows 2000 style Wizards with white backgrounds(109KB)134,FileExportDialog.zipAdding filters to the Open File dialog(24KB)135,customize_dialog.zipCustomizing the Windows Common File Open Dialog(15KB)136,SelectFolder.zipThe windows 'Select Folder' dialog with some extra functionality(41KB)137,animate_dlg.zipAnimated Icon on Titlebar of a Dialog based Application(34KB)138,BmpDlg.zipBitmap Dialog Class(52KB)139,namespace.zipClass for Browsing shell namespace with your own dialog(78KB)140,OnUpdate_demo.zipHandling OnUpdate() processing for menu items(10KB)141,DialogUpdates.zipUsing ON_UPDATE_COMMAND_UI with all controls in a Dialog(18KB)142,override.zipCustomizing the font dialog(4KB)143,cmdlg.zipCostumizing CFileDialog(31KB)144,custom_open.zipCustom Open File or Save as Dialog(25KB)145,Color
Form
View
.zipC
Form
View
Class with Custom Background Color(33KB)146,Banner.zipAnimated Background Banner(88KB)147,MDIClient.zipA Custom MDI Client Class(42KB)148,html_help_
view
.zipHTML Help In C
View
Window(5KB)149,MDIPre
view
_demo.zipPrint Pre
view
in MDI Frame(20KB)150,zoom_scale.zipAdd Zoom and Scale Capabilities to CScroll
View
(338KB)151,autopan.zipAuto-Panning Windows(44KB)152,autopan2.zipMicrosoft Internet Explorer like Intellimouse AutoScroll(42KB)153,intellipan.zipIntellimouse panning (improved Auto-Panning Windows)(5KB)154,intellipan2.zipIntellimouse panning 2 (A universal Auto-Panning solution)(12KB)155,bigscroll.zipBreaking the CScroll
View
32768 size limitation with CBigScroll
View
(90KB)156,variable_splitter.zipVariable splitter
view
s(58KB)157,Tabbed
View
s_src.zipTabbed
View
s(78KB)158,animate_icon_src.zipAnimated Icon on Titlebar of a window(48KB)159,msdi1632.zipMultiSingle (MSDI) Document interface(77KB)160,msdidao.zipMultiSingle (MSDI) Document interface with DAO doc(508KB)161,ScreenSwitch_demo.zipMultiple
View
s Using SDI(26KB)162,multi
view
.zipMultiple
view
s for a single document (MDI) 3(86KB)163,WinMenu_demo.zipHome made MDI windows list in Window menu(21KB)164,SdiMulti.zipSDI Interface with Multi-
View
s and Multi-Splitters(88KB)165,Doc
View
InDll_demo.zipSeparating the
view
s of an MDI application into different DLLs(60KB)166,MultiFrame_demo.zipMultiple frame windows in SDI application(76KB)167,mrcext.zipResizable Docking Window(862KB)168,sizing.zipSizing TabControlBar(46KB)169,devstudio.zipAnother DevStudio-alike DialogBar(43KB)170,docking.zipResizable Docking Window 2(98KB)171,simple_splitter.zipGeneral Purpose Splitter Class(43KB)172,cxysplitter.zipA pair of splitter classes used in dialog
box
(21KB)173,dynamic_splitter.zipSplitter Window - "True" dynamic splitter window(52KB)174,outlook_style.zipOutook Style Splitter Bar(59KB)175,minsplit.zipMinimum size splitter(36KB)176,scrbsplt.zipRemoving and reapplying splitter windows on-the-fly in Scribble with a custom splitter window class(157KB)177,switch
view
s_in_splitter.zipSwitching
view
s in splitter panes (SDI)(44KB)178,rulers_src.zipImplementing Rulers inside of Splitter Panes(5KB)179,dynamic1.zipDifferent
View
s In Dynamic Splitter(202KB)180,dialogstartupanimation.zipThis sample shows you how to create dialog startup animation like that of Window 98'menu(18KB)181,yqeditgridcontrol.zipa grid control that enable keyboard input. That is to say, you can write data in it. (31KB)182,switchmdi
view
s.zipThis sample shows you how to switch from one
view
to the other in a MDI splitter window application(31KB) 183,yqmdireplace
view
.zipThis sample shows you how to replace different
view
s in a MDI splitter window application(36KB) 184,switch
view
.zipThis sample shows you how to switch from one MDI window to another by using the "Ctrl Tab" key.(29KB) 185,filterreturnkey.zipThis sample shows you how to trap, filter the ENTER and ESCAPE key of a dialog
box
(17KB)186,filterkey.zipThis sample shows you how to filter a certain key and mask that key(18KB)187,editenter.zipThis sample shows you how to use RETURN key to switch among edit controls of a dialog
box
(18KB)188,dialoghook.zipThis sample shows you how to set keyboard hook function of a dialog
box
to trap RETURN ,ESCAPE key.(17KB) 189,contexthelp.zipThis sample shows you how to create context sensitive help of a control of a dialog
box
(26KB) 190,traparrokey.zipThis sample describes how to trap arrow keys in an control of a dialog
box
(18KB)191,yqadvancedbtn.zipOwner draw hot button support both bitmap and icon, with flat, gripper property. (108KB)192,drawlistbo.zipOwner draw CTabCtrl with flat gripper property (40KB)193,startupanimation.zipCreate Window startup animation, including several kind of animation style, very interesting(23KB) 194,flatlist
box
.zipusing a unique way to implement flat attribute( other than those published on the codegurn), as well as hot ,gripper attribute.(21KB) 195,yqhoteditctrl.zipCreate edit control with Hot , flat, gripper. separator attributes (21KB)196,3dmdishadow.zipCreate 3D shadow of a MDI frame windows(32KB) 197,3dsdishadow.zipCreate 3D shadow of a SDI frame windows(29KB)198,getfile.zipA DDX routine for MFC to retrieve filenames(29KB)199,splasher.zipAn improved splash screen component for MFC(62KB)200,pushpin.zipA pushpin button MFC class(12KB)201,getfolder.zipA DDX routine for MFC to retrieve folders(30KB)202,ntray.zipAn MFC class to manipulate tray icons(17KB)203,hlinkctrl.zipAn MFC class to support hyperlinks on windows and dialogs(16KB)204,icondialog.zipAn icon selection dialog class for MFC(12KB)205,pushpinframe.zipAn MFC class to provide property dialogs ala Developer Studio(16KB)206,mappin.zipAn MFC class to implement map pins(286KB)207,iconcombo
box
.zip2 MFC classes to implement icon selection combo
box
es(19KB)208,menuex_demo.zipImplementing an Ownerdrawn menu (35KB)209,bcmenu261.zipCool Owner Drawn Menus with BitmapsVersion 2.61(70KB)210,dynmenu.zipSome handy functions for adding and deleting submenus and menuitems in runtime (16KB)211,gradientmenu.zipCreate Popup menus in MFC with a gradient and text on the left side (89KB)212,menuicon_demo.zipGive your apps a unique look by adding a logo to your menu(48KB)213,bcgbappwizard.zipBCGControlBar library version 4.6(2121KB)214,mpcstatusbar.zipAn enhanced CStatusBar to easily and dynamically add/remove controls on a status bar (48KB)215,textonlystatusbar.zipAn easy to use and implement Text Only Status Bar with
Tool
tip text extracted from the status bar panes. (39KB)216,progressbar.zipShowing progress bar in a status bar pane(33KB)217,sizecbar_src.zipDevStudio-like docking window (64KB)218,sizing_tabct1_demo.zipCreates a dockable and resizable control bar. (46KB)219,dock
view
.zipA fairly simple way to incoporate
view
s into sizing control bars(69KB)220,spin_slide_
tool
bar.zipHow to create
tool
bars with spinners and/or sliders(48KB)221,tearoffrebars_prj.zipThis article Implements the functionality similar to the Office 2000
tool
bars(26KB)222,flatbar.zipA flat
tool
bar implementation that does not require the updated common controls library from Internet Explorer. (197KB)223,
tool
bar_droparrow_demo.zipDemonstrates how to use the new
tool
bar styles to add dropdown arrows to
tool
bar buttons (28KB)224,dynamictb.zipA simple tutorial that shows how to dynamically replace
tool
bars at runtime (35KB)225,
tool
bar_docking_demo.zipDemonstrates how to dock
tool
bars side-by-side (29KB)226,tape
tool
bar.zipA spectacular variation on
tool
bars (35KB)227,chevions.zipAn introduction to using the cool new
tool
bar chevrons (18KB)228,
tool
groupmanager.zipA reusable template class for managing multiple
tool
bars, only one of which is displayed at a time(30KB)229,
tool
bar_hotbuttons_demo.zipDemonstrates how to add rollover buttons to your
tool
bar(30KB)230,
tool
bar.zipWTL
Tool
Bar Drop-Down Extension(64KB)231,win95asm.zipIntroduction to Menus(113KB)232,outbar.zipCGfxOutBarCtrl, an Outlook98 bar-like control(163KB)233,tabstatus.zipAdvanced UI - MDI list in the status bar (and a custom Window List dialog)(62KB)234,gfxlist.zipList Control - Enhanced list control(1544KB)235,maillook.zipInternet Mail Look(42KB)236,cdxcdynamic.zipDynamic child window repositioning for dialogs, property sheets,
form
view
s and any other CWnd derived classes. (227KB)237,voicecmd.zipVoice Command Enabling Your Software (27KB)238,cj60lib.zipMFC Extension Library - CJ60 Version 6.07(1100KB)239,infobar.zipIn
form
ation Bar (62KB)240,switcher.zipA Switcher Control (like the Windows Task Bar) (40KB)
Qt布局和
控件
使用
在 widget 中的
控件
可以进行水平、垂直、栅格布局等操作
Qt Desiger常用
控件
示例
这里针对Qt Designger界面简单总结了一些示例。
C#
111,119
社区成员
642,545
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章