CPropertyPage & CPropertySheet

发表于:2007-06-08来源:作者:点击数: 标签:
vc6 ●CPropertyPage的创建时间不能在初始化中 运行起来会出现一些问题,CPropertySheet可以在初始化的时候创建,在这个时候如果将CPropertyPage作为CPropertySheet的成员变量,则会造成CPropertyPage的创建时间在初始化中,从而导致运行时错误,错误原因不明
vc6
●CPropertyPage的创建时间不能在初始化中
运行起来会出现一些问题,CPropertySheet可以在初始化的时候创建,在这个时候如果将CPropertyPage作为CPropertySheet的成员变量,则会造成CPropertyPage的创建时间在初始化中,从而导致运行时错误,错误原因不明。
●CPropertySheet在属于它的CPropertyPag数目为0的时候,Create不创建任何窗口,它的m_hWnd为0。
●CPropertySheet在DestroyWindow后属于它的CPropertyPage还在,比如
    sheet.add_textpage();
    sheet.Create();
    sheet.DestroyWindow();
    sheet.add_textpage();
    sheet.Create();
后是2页,而不是一页。



 

原文转自:http://www.ltesting.net

...