楼主好像对this指针的意义好像有点不太明白; The this pointer is a pointer accessible only within the nonstatic member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer. 在基于对话框的应用程序当中, 在C**Dgl中,this代表的是这个类对象的指针;而不是他的基类CDialog的指针;
The this pointer is a pointer accessible only within the nonstatic member functions of a class, struct, or union type. It points to the object for which the member function is called. Static member functions do not have a this pointer.
在基于对话框的应用程序当中, 在C**Dgl中,this代表的是这个类对象的指针;而不是他的基类CDialog的指针;
上面的CWnd *ParentWnd 啊
可以用这个:
CMyDialog* dlg=(CMyDialog*)AfxGetMainWnd();
而不是把this传出去的。