假如是下面这段代码出错: void CSpecialFileDialog::OnDelete() { m_bDeleteAll = TRUE; // 0x480 is the child window ID of the File Name edit control // (as determined by SPYXX) GetParent()->GetDlgItem(0x480)->GetWindowText(m_strFilename); GetParent()->SendMessage(WM_COMMAND, IDCANCEL); } 那应当是其中所称的480窗口ID的问题,可用spy工具重新测一下。
没有你说的这种情况
要不你先删去debug这样再编译!
试试看!
void CSpecialFileDialog::OnDelete()
{
m_bDeleteAll = TRUE;
// 0x480 is the child window ID of the File Name edit control
// (as determined by SPYXX)
GetParent()->GetDlgItem(0x480)->GetWindowText(m_strFilename);
GetParent()->SendMessage(WM_COMMAND, IDCANCEL);
}
那应当是其中所称的480窗口ID的问题,可用spy工具重新测一下。