void CTCPNetKitDlg::OnShowPicture() 
{
// TODO: Add your control notification handler code here


}
想在这个按钮按下时 激活另一个按钮(下面)
void CWangPengDlg::OnBtnselfile() 
{
// TODO: Add your control notification handler code here

CString strPathName;
char lpbuf[3];
CFileDialog m_FileDialg(true,_T(".txt"),NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,_T("文本文件(*.txt)|*.txt|All Files (*.*)|*.*||"),NULL);
CFileException e; char path[MAX_PATH];                                 
GetCurrentDirectory(MAX_PATH,path);                    
CString str=path;
str = str +_T("\\test.jpg");
if(m_FileDialg.DoModal()==IDOK)
{
strPathName = m_FileDialg.GetPathName();
CFile m_file_in,m_file_out;
unsigned char temp[3];
m_file_out.Open(str,CFile::modeReadWrite |CFile::modeCreate |CFile::typeBinary,NULL);
if(m_file_in.Open(strPathName,CFile::modeRead,&e))
{
m_file_in.SeekToBegin();
for(DWORD dl=0;dl<m_file_in.GetLength();)
{
m_file_in.Read(lpbuf,3);
temp[0] = strToHex(lpbuf[0])*16+strToHex(lpbuf[1]);
m_file_out.Write(temp,1);
dl = dl+3;
}
}
m_file_in.Close();
m_file_out.Close(); m_pic.LoadFromFile(str);
}

}两个按钮不在同一个对话框,可以吗?需要怎么做?最好有调用的程序~~~谢谢啦!!