在对话框中关于其中各控件的TOOLTIPS的一个问题??

nbzth25 2003-08-23 04:20:29
在一个对话框中,对其中的控件显示TOOLTIPS,已经调用了EnableToolTips函数,通知TTN_NEEDTEXT的处理函数如下:

BOOL CTooltipDlg::ShowTips(UINT id,NMHDR* PNMHDR,LRESULT* pResult)
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)PNMHDR;

//得到控件ID;
UINT nID = PNMHDR->idFrom;

if (pTTT->uFlags & TTF_IDISHWND)
{

//下面这句是什么意思?nID已经是控件的标识符了,怎么可以转化成句柄?(HWND)nID
为什么又要通过::GetDlgCtrlID再一次取得nID???

nID = ::GetDlgCtrlID((HWND)nID);

if (nID)
{
pTTT->lpszText = MAKEINTRESOURCE(nID);
pTTT->hinst = AfxGetResourceHandle();
return(TRUE);
}
}
return(FALSE);
}
...全文
71 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
1,cstatic_filespec.zip静态文本用省略号显示长文件名(3KB)2,cstatic_filespec_demo.zip静态文本用省略号显示长文件名的演示程序(14KB)3,newlabel_app.zipCNewLabel--高级的CStatic派生(39KB)4,jumpytext_demo.zip跳动的文本类演示程序(138KB)一个非常COOL的导航菜单(3KB)13,contentmenu_demo.zip一个非常COOL的导航菜单演示程序(37KB)14,freemenu.zip随意设定颜色和字体的自绘菜单(35KB)15,menutip.zip实现菜单的工具提示演示程序(33KB)16,dockmenubar_src.zipDevStudio样式的泊位菜单条(不用MSIE)(27KB)17,dockmenubar_demo.zipDevStudio样式的泊位菜单条演示程序(不用MSIE)(58KB)18,label_edit.zip可编辑的标号控制(5KB)19,flat_scrollbar.zip扁平滚动条控制(11KB)20,avidemo.zip动画控制的例子(145KB)21,balloontooltip_src.zip像气球一样的工具提示(7KB)22,balloontooltip_demo.zip像气球一样的工具提示演示程序(49KB)23,check_frame.zip一个有用的CheckFrame控制(31KB)24,extended_tooltip.zip扩展的ToolTipCtrl类(21KB)25,progress_in_status2_src.zip在状态栏里显示进度条(4KB)26,progress_in_status2_demo.zip在状态栏里显示进度条演示程序(39KB)27,vcmenu.zipVisual Studio/Office 97 式样的扁平工具条和可泊位菜单条(350KB)28,flatbar_source.zip另一个扁平工具条(不需要MSIE)(11KB)29,flatbar_sample_project.zip另一个扁平工具条(不需要MSIE)工程程序(185KB)30,enh_flatbar_source.zip另一个扁平工具条(不需要MSIE)增强版(25KB)31,enh_flatbar_sample.zip另一个扁平工具条(不需要MSIE)演示增强版(56KB)32,customizable_tb.zip可定制的工具条(25KB)33,treemenudemo.zip一个类似IE4的收藏夹/历史/频道视图的控制(72KB)34,cdirtreectrl_demo.zipDirTreeCtrl--显示文件夹和文件演示程序(56KB)35,cdirtreectrl_src.zipDirTreeCtrl--显示文件夹和文件(6KB)36,a
DotNetBar是一款带有56个 Windows Form 控件的工具箱,使开发人员可以轻而易举地创建出专业美观的Windows Form应用程序用户界面,控件全部采用C#编写,引入了全部Office 2007 style Ribbon控件、Office 2003 office2010 样式、支持windows7,Windows XP主题等。DotNetBar for WindowsForms 全面支持Office 2010 风格的后台应用程序菜单。 DotNetBar For Windows Forms 11.7.0.6(11706) 官方原版+注册机(强悍的用户界面控件库) DotNetBar For Windows Forms 11.7.0.6 官方原版+注册机(强悍的用户界面控件库) 具体功能: 为office2010、windows7、Office 2007 Ribbon 控件提供了Black,Silver ,Blue三种配色方案,支持Windows Vista Glass、tab groups, ribbon hyper menus, multi-level KeyTips, complete Quick Access Toolbar (QAT),支持Ribbon Menu Tabs Office 2007 Ribbon Bar 控件具有组合按钮,弹出按钮等 Office 2007 Super Tooltips控件具有18种颜色样式 支持停靠窗口自动隐藏,灵活的视图分割 支持具有Office 2007, VS.NET 2005, Office 2003/XP/2000,样式的Hyper-Menus 和工具条 支持具有Office 2007和2003样式的导航面板,支持扩展和收缩 SuperTab控件支持6种不同的样式,16种配色方案,支持颜色自定制 Explorer Bar控件使程序员可以创建出具有XP样式的Explorer Bar Tab-Strip控件具有九种预定义的样式,支持tabbed MDI ,颜色自定义 Side Bar 控件具有两种布局类型、5种不同的样式、18种预定义颜色方案,支持拖拉功能 BubbleBar 是一个灵活的toolbar控件 Stand alone Bar可以用于创建具有Office 2007 的状态条 可扩展的Splitter控件,Expandable Splitter控件能够直观的管理屏幕状态 可展开的Panel控件, Expandable Panel控件完整的支持office2007,2003的风格外观 多功能的Panel控件 Balloon/Alert控件用于传达一些重要的信息给最终用户 Wizard控件支持Wizard97规范,可以创建安装文件。 ButtonX 是一个卓越的按钮控件,ButtonX控件可以独立的控制下拉菜单、Office 2007, Office 2003, VS.NET 2005 和客户自定义颜色风格。 Color Picker控件可以创建具有Office 2007样式的下拉式颜色采集器,程序员也可以自定义颜色对话框 Item Panel使你可以创建出灵活的可以进行选择的多功能面板 具有Office 2007样式和外观的窗体 Office 2007样式的复选框和单选框 Progress bar控件可以用于创建具有Office 2007, Office 2003 和 VS.NET 2005的进度条 Office 2007样式的MessageBox 多功能Office 2007样式的TextBox 多功能Office 2007样式的下拉列表框 GroupPanel可以创建组合的TextBox文本框 Slider滚动条控件创建具有Office 2007样式的外观 具有Office 2007样式的ListViewEx控件,该控件不支持.NET Framework 1.0, 1.1. Office 2007样式的Label控件 DataGridViewX控件一个表格控件,具有行、表头、滚动等功能,该控件不支持.NET Framework 1.0, 1.1. Date/Time Picker时间采集控件,可以用于创建具有Office 2007样式的日期选择控件 Month-Calendar控件让程序员可以创建月历控件 Double value input控件,用于控制值的输入,支持空值,货币值,小数,百分比 Integer value input控件可以控制整数的输入 Reflection Image控件为图片提供倒影功能 Reflection Label控件可以用于对Label提供倒影 水平和垂直滚动条控件可以创建Office 2007样式的滚动条 高级的可以指定格式输入的TextBox 多种功能的TreeView控件,支持拖拉功能,支持多选择 CrumbBar™ 控件 TextBoxDropDown控件 ComboBox树型控件可以用于在下拉列表框里创建树形控件 Rating控件 支持VS2013以及其他版本
1,create.ZIP 不用OCX来创建自己的控件(4KB)2,rganimate.ZIP 动画控件(35KB)3,rgassistant.ZIP 允许你创建一个Microsoft Office97那样的助手!(65KB)4,rgsysmoncal.ZIP 日期控件(35KB)5,datadrn.ZIP 创建数据驱动窗体(7KB)6,tooltip.zip 利用VB建立ToolTip窗口(4KB)7,trans.zip 建立透明的窗口(2KB)8,Anicur.zip 在窗口建立动画光标(2KB)9,toolbar.zip 建立浮动工具栏的例程(22KB)10,winrgn.zip 建立不规则的窗口(2KB)11,winhole.zip 建立一个间有洞的窗口(2KB) 12,split.zip 分割窗口并动态调整分割区域(类似于Windows的资源管理器)(18KB)13,rubrect.zip 在屏幕上出现抓取窗口(8KB)14,hidebtn.zip 隐藏Win9X任务栏上的“开始”按钮(2KB)15,console.zip 利用API函数建立控制台窗口(4KB)16,startinm.zip 将一个程序的窗口作为你的窗口的MDI子窗口(3KB)17,desktop.zip 一个可以动态排列桌面图标和动态改变屏幕分辨率的程序(29KB)18,rgdock.zip 建立类似Office工具栏的Docking Window(56KB)19,comboex.zip 一个非常cool的范例,可以在窗口建立一个类似于Windows Explore的地址栏的图标下拉ComboBox。其还包含了其它的许多技巧(32KB)20,dyncontrol.zip 动态建立控件的范例(3KB)21,listitemdrag.zip 演示如何将列表框的条目拖放到另外一个列表框(2KB)22,ownerdrawmenu.zip 演示建立图形菜单,同一般的图形菜单不同,通过该程序建立的菜单当光标移动到菜单项上时,该项一样可以象Word97菜单项一样突出显示(11KB)23,traybar.zip 一个可以隐藏任务栏(Traybar)上的开始按钮、Switch Bar、快速启动按钮、任务栏图标、桌面图标的程序(3KB)24,windowsplacement.zip 更改Windows程序在Switch bar上的位置(3KB)25,tooltips.zip 利用Windows API实现的可显示多行文字的ToolTip(5KB)26,deskicon.zip 当你设置Windows的桌面墙纸之后,是否觉得桌面图标文字下的色块十分碍眼呢,这个程序可以使图标文字透明的显示在桌面上。还可以改变桌面图标文字的颜色以及图标文字下色快的颜色(2KB)27,animatedtitlebar.zip 这个程序可以使你的窗口的Title Bar动起来。很有趣的(26KB)28,resizr.zip 一个带源码以及演示的Resizer控件,就象Windows资源管理器的文件夹列表同文件列表之间的Resizer棒一样(7KB)29,taskbar.zip 一个带源码以及演示的TaskBar控件,可以让你的窗口象Windows的TaskBar一样(6KB)30,xeditor.zip 一个利用VB编写的功能比较完备的文本编辑器(172KB)31,custominputbox.zip 这个程序演示如何改变缺省的InputBox的外貌(10KB)32,controlpopmenu.zip 这个程序演示如何控制控件的缺省弹出菜单(例如TextBox),是完全控制而不只是隐藏和显示(3KB)33,coolmenu.zip 一个很Cool的菜单程序,可以把你的菜单改造成象Office系列的带图标的菜单(33KB)34,covereffect.zip 一个实现程
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
控制RichTextCtrlInsert键状态(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)

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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