背景:小白,啥也不懂的小白。
CSample
{
int a ;//a 是変数
}
CSample2
{
CSample str //str 是インスタンス名
str.a; //インスタンス名.メンバー変数
//インスタンス名.メンバー関数()
}
void CSearchExploreDlg::SearchKey()
{
GetDlgItem(IDC_MFCSHELLLIST1)->ShowWindow(SW_HIDE);
GetDlgItem(IDC_LIST1)->ShowWindow(SW_SHOW);
CString strKey; //キーワード
GetDlgItemText(IDC_EDIT2, strKey); //キーワード取得
m_wndShellList.GetCurrentFolder(m_strPath); //検索パスはListコントロールから取得
CString strSearchPath = m_strPath + _T("\\") + "*" + strKey + "*";
SearchProcess(strSearchPath);
}
void CSearchExploreDlg::SearchProcess(CString strSearchPath)
{
CFileFind fFinder; //インスタンス
BOOL bFind = fFinder.FindFile(strSearchPath);
}
参考:https://zhidao.baidu.com/question/567703218.html
纯属为了自己看