91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 92KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-06
  • 語言: 其他
  • 標簽: MFC??ListBox??

資源簡介

VC開發(fā)實現(xiàn)任務管理器,可實現(xiàn)枚舉進程、枚舉模塊、枚舉窗口,可以方便大家在編程過程中對進程、模塊、窗口進行管理

資源截圖

代碼片段和文件信息

//?EditListCtrl.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“EnumWindow.h“
#include?“EditListCtrl.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CEditListCtrl

CEditListCtrl::CEditListCtrl()
{
m_row=-1;
m_column=-1;
}

CEditListCtrl::~CEditListCtrl()
{
}


BEGIN_MESSAGE_MAP(CEditListCtrl?CListCtrl)
//{{AFX_MSG_MAP(CEditListCtrl)
ON_NOTIFY_REFLECT(NM_DBLCLK?OnDblclk)
ON_EN_KILLFOCUS(10001?OnKillfocusEdit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CEditListCtrl?message?handlers

void?CEditListCtrl::OnDblclk(NMHDR*?pNMHDR?LRESULT*?pResult)?
{
//?TODO:?Add?your?control?notification?handler?code?here
NM_LISTVIEW*?pNMListView=(NM_LISTVIEW*)pNMHDR;
CRect?rc;
if(pNMListView->iItem!=-1)
{
m_row=pNMListView->iItem;//m_row為被選中行的行序號(int類型成員變量)
m_column=pNMListView->iSubItem;//m_column為被選中行的列序號(int類型成員變量)
GetSubItemRect(pNMListView->iItem?pNMListView->iSubItemLVIR_LABELrc);//取得子項的矩形
rc.left+=2;
rc.top+=2;
rc.right-=2;
rc.bottom+=2;

char?ch[1024];
GetItemText(pNMListView->iItem?pNMListView->iSubItemch1024);//取得子項的內(nèi)容

if(m_edit.m_hWnd==NULL)
{
m_edit.Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_MULTILINE|WS_VSCROLLrcthis10001);
CFont?*pFont=GetFont();
m_edit.SetFont(pFontTRUE);
}
m_edit.SetWindowText(ch);//將子項的內(nèi)容顯示到編輯框中
m_edit.ShowWindow(SW_SHOW);//顯示編輯框
m_edit.MoveWindow(&rc);//將編輯框移動到子項上面,覆蓋在子項上
m_edit.SetFocus();//使編輯框取得焦點
m_edit.CreateSolidCaret(1rc.Height()-5);//創(chuàng)建一個光標
m_edit.ShowCaret();//顯示光標
m_edit.SetSel(-1);//使光標移到最后面
}

*pResult?=?0;
}

void?CEditListCtrl::OnKillfocusEdit()?
{
//?TODO:?Add?your?control?notification?handler?code?here
if(IsWindow(m_edit.m_hWnd)&&m_edit.IsWindowVisible()&&m_row!=-1&&m_column!=-1)
{
CString?str;
m_edit.GetWindowText(str);//取得編輯框的內(nèi)容
SetItemText(m_rowm_columnstr);//將該內(nèi)容更新到CListCtrl中
m_edit.ShowWindow(SW_HIDE);//隱藏編輯框
}
}

BOOL?CEditListCtrl::PreTranslateMessage(MSG*?pMsg)?
{
//?TODO:?Add?your?specialized?code?here?and/or?call?the?base?class
if(pMsg->message==WM_KEYDOWN)
{
if(pMsg->wParam==VK_RETURN)
{
if(IsWindow(m_edit.m_hWnd)&&m_edit.IsWindowVisible()&&m_row!=-1&&m_column!=-1)
{
CString?str;
m_edit.GetWindowText(str);//取得編輯框的內(nèi)容
SetItemText(m_rowm_columnstr);//將該內(nèi)容更新到CListCtrl中
m_edit.ShowWindow(SW_HIDE);//隱藏編輯框
}

return?TRUE;
}
}
return?CListCtrl::PreTranslateMessage(pMsg);
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????168020??2013-10-31?00:05??EnumWindow\Debug\EnumWindow.exe

?????文件???????2855??2013-10-31?00:05??EnumWindow\EditListCtrl.cpp

?????文件???????1306??2013-10-30?23:25??EnumWindow\EditListCtrl.h

?????文件??????37976??2012-03-19?21:22??EnumWindow\EnumWindow.aps

?????文件???????1996??2013-10-31?00:36??EnumWindow\EnumWindow.clw

?????文件???????3530??2012-07-02?14:36??EnumWindow\EnumWindow.cpp

?????文件???????4712??2012-03-19?21:22??EnumWindow\EnumWindow.dsp

?????文件????????543??2011-01-24?03:37??EnumWindow\EnumWindow.dsw

?????文件???????1768??2011-01-24?16:53??EnumWindow\EnumWindow.h

?????文件??????99328??2013-10-31?00:36??EnumWindow\EnumWindow.ncb

?????文件??????59904??2013-10-31?00:36??EnumWindow\EnumWindow.opt

?????文件???????1468??2013-10-31?00:20??EnumWindow\EnumWindow.plg

?????文件???????7006??2012-03-19?21:22??EnumWindow\EnumWindow.rc

?????文件??????39091??2013-10-31?00:20??EnumWindow\EnumWindowDlg.cpp

?????文件???????3100??2012-03-04?01:09??EnumWindow\EnumWindowDlg.h

?????文件???????3651??2011-01-24?03:37??EnumWindow\ReadMe.txt

?????文件??????53248??2013-10-31?00:20??EnumWindow\Release\EnumWindow.exe

?????文件???????1078??2011-01-24?03:37??EnumWindow\res\EnumWindow.ico

?????文件????????402??2011-01-24?03:37??EnumWindow\res\EnumWindow.rc2

?????文件????????509??2012-03-19?21:22??EnumWindow\res\uac.txt

?????文件???????1378??2012-03-02?06:07??EnumWindow\resource.h

?????文件???????4890??2001-09-08?19:31??EnumWindow\SortHeaderCtrl.cpp

?????文件???????1024??2001-09-08?19:31??EnumWindow\SortHeaderCtrl.h

?????文件???????8865??2012-03-04?01:13??EnumWindow\SortListCtrl.cpp

?????文件???????2091??2012-03-04?01:11??EnumWindow\SortListCtrl.h

?????文件????????319??2011-01-24?05:43??EnumWindow\StdAfx.cpp

?????文件???????2051??2013-05-14?04:32??EnumWindow\StdAfx.h

?????目錄??????????0??2013-10-31?13:30??EnumWindow\Debug

?????目錄??????????0??2013-10-31?13:31??EnumWindow\Release

?????目錄??????????0??2013-07-30?20:36??EnumWindow\res

............此處省略4個文件信息

評論

共有 條評論