【MFC】在一个函数里调取另一个函数的值

背景:小白,啥也不懂的小白。
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

纯属为了自己看

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值