Note: the program I'm creating is based on Dialogs only.
Now, I want to fox in creating a SLL Dialog , which should appears when I press the Singly linked list button on the First Dialog.
This is the function for button 3 :
PHP Code:
void CTetDlg::OnButton3()
{
// TODO: Add your control notification handler code here
SLL newSll;
}
That does not work, even when I created a SLL class, this the header file for SLL class:
PHP Code:
#if !defined(AFX_SLL_H__4C827A8A_AB05_4879_8765_3161DEFA7142__INCLUDED_)
#define AFX_SLL_H__4C827A8A_AB05_4879_8765_3161DEFA7142__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SLL.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// SLL dialog
class SLL : public CDialog
{
// Construction
public:
SLL(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(SLL)
enum { IDD = IDD_PROPPAGE_MEDIUM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(SLL)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(SLL)
afx_msg void OnButton7();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SLL_H__4C827A8A_AB05_4879_8765_3161DEFA7142__INCLUDED_)
So, what should I do ?