Тоисть у меня есть вот ето
Код:
void CDirMonDlg::FillListBox(bool lNeu)
{
HICON hIcon;
mList.Fil
mList.ResetContent();
if (lNeu)
{
hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
SetWindowText("Neue Abrufe - Seeburger");
char str[MAX_PATH];
mDirName.GetLine(0,str,MAX_PATH);
CFileFind ff;
// ff.GetLastError();
//ff.Close();
bool res;
if(ff.FindFile(CString(str)+"\\*.txt")!=0)
{
do
{
res = ff.FindNextFile();
CTime d;
ff.GetCreationTime(d);
CString strName = d.Format(" %c - ") + ff.GetFileTitle();
mList.AddString(strName);
}while(res);
}
ff.Close();
}
else
{
hIcon = AfxGetApp()->LoadIcon(IDI_ICON2);
SetWindowText("Seeburger");
//mList.ResetContent();
}
if (hIcon!=NULL)
SetIcon(hIcon,false);
}
void CDirMonDlg::OnClose()
{
// TODO: Add your message handler code here and/or call default
if(!ladmin)
{
if (g_bGoOn)
{
//MessageBox("..........","Achtung" , MB_OK);
this->ShowWindow(SW_MINIMIZE);
}
}
else
{
this->OnBnClickedButton2();
CDialog::OnClose();
}
}
куда мне его тут присобачить ?