konhon

          忘掉過去,展望未來。找回自我,超越自我。
          逃避不一定躲的過, 面對不一定最難過, 孤單不一定不快樂, 得到不一定能長久, 失去不一定不再擁有, 可能因為某個理由而傷心難過, 但我卻能找個理由讓自己快樂.

          Google

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            203 Posts :: 0 Stories :: 61 Comments :: 0 Trackbacks

          uses CommCtrl;

          procedure TForm1.ListView1MouseMove(Sender: TObject; Shift: TShiftState; X,
            Y: Integer);
          var
            item: TListItem;
            lvhti: LV_HITTESTINFO;
          begin
            item := ListView1.GetItemAt(X, Y);
            if (item <> nil) then
              Caption := 'Mouse at: ' + item.Caption
            else
            begin
              lvhti.pt.X := X;
              lvhti.pt.Y := Y;
              ListView_SubItemHitTest(ListView1.Handle, @lvhti);
              if Assigned(ListView1.Items[lvhti.iItem])
                and (ListView1.Items[lvhti.iItem].SubItems.Count >= lvhti.iSubItem) then
                Caption := 'Mouse at:' + ListView1.Items[lvhti.iItem].SubItems[lvhti.iSubItem - 1];
            end;
          end;

          posted on 2005-08-25 06:45 konhon 優華 閱讀(1108) 評論(0)  編輯  收藏 所屬分類: Delphi
          主站蜘蛛池模板: 民权县| 甘德县| 房产| 花莲市| 鹤山市| 巨鹿县| 义乌市| 潞西市| 河津市| 淮阳县| 威海市| 如东县| 盐池县| 乡城县| 长丰县| 长宁区| 镇康县| 泗阳县| 石河子市| 师宗县| 故城县| 隆昌县| 朝阳县| 泸州市| 调兵山市| 崇信县| 凉城县| 涡阳县| 平乐县| 拜城县| 娄烦县| 土默特左旗| 瓮安县| 华阴市| 应城市| 屯昌县| 广昌县| 石台县| 曲沃县| 卓尼县| 新宁县|