专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
当ListView当前选择项目更改时保存它Index值然后其它地方就操作这个值就行了如下: ...... .uMsgWM_NOTIFY movebx,lParam assumeebx:ptrNM_LISTVIEW pushebx moveax,hList;hList是ListView句柄 .[ebx].hdr.codeLVN_ITEMCHANGED&&[ebx].hdr.hwndFromeax push[ebx].iItem popCurrItem ;当前ListViewIndex保存到CurrItem中 .end popebx assumee [阅读全文] [PDF]
模块,命名为:CTooltip,代码如下:Option ExplicitPrivate Declare Sub InitCommonControls Lib \"comctl32.dll\" ()´´Windows API FunctionsPrivate Declare Function CreateWindowEx Lib \"user32\" Alias \"CreateWindowExA\" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWind [阅读全文] [PDF]
ListView实在是超级无敌复杂地难封装啊,Vista下的ListView简直是万能的,以至于我萌生了将grid和tree-grid都用ListView来实现的想法。当然这只是想一想,暂时不想做。这个ListView花了1700行代码封装完成,共有4个类,分别是item、column、group和listview,listview自己的事件16个。 本文内容有两幅示例以及.h、.cpp以及main函数代码 图1:初始化 图2:点击column并排序(按照所属column的文字) 代码1:使用 1 #include "..\..\..\..\VL [阅读全文] [PDF]
(*//标题:获取其他进程中ListView的文本说明:Window2000+Delphi6调试通过设计:Zswang支持:[email protected]日期:2004-03-25//*)uses CommCtrl;function ListViewColumnCount(mHandle: THandle): Integer;begin Result := Header_GetItemCount(ListView_GetHeader(mHandle));end; { ListViewColumnCount }function G [阅读全文] [PDF]
1 共4条 分1页