我有多次做实验!
CMyPropertyPage对应的资源里面用dialog没问题,用IDD_PROPPAGE_LARGE,有问题,至于用其他的medium,small PropertyPage做资源会不会有问题,我不想玩了MSDN上是这么说的:
CPropertySheet::DoModal
Res
When a property page is created from its corresponding dialog resource, it can cause a first-chance exception. This results from the property page changing the style of the dialog resource to the required style before the page is created. Because resources are generally read-only, this causes an exception. The system handles the exception, and makes a copy of the modified resource. The first-chance exception can therefore be ignored.
只有第一次使用才出问题,后面不再出现。
坑逼!
还有MFC colorbutton的问题我受不了了

解决方案 »

  1.   

    我有多次做实验!
    CMyPropertyPage对应的资源里面用dialog没问题,用IDD_PROPPAGE_LARGE,有问题,至于用其他的medium,small PropertyPage做资源会不会有问题,我不想玩了MSDN上是这么说的:
    CPropertySheet::DoModal
    Res
    When a property page is created from its corresponding dialog resource, it can cause a first-chance exception. This results from the property page changing the style of the dialog resource to the required style before the page is created. Because resources are generally read-only, this causes an exception. The system handles the exception, and makes a copy of the modified resource. The first-chance exception can therefore be ignored.
    只有第一次使用才出问题,后面不再出现。
    坑逼!
    还有MFC colorbutton的问题我受不了了
    看来MSDN很好的描述了你的问题,不过一般都是用Dialog吧
      

  2.   

    我有多次做实验!
    CMyPropertyPage对应的资源里面用dialog没问题,用IDD_PROPPAGE_LARGE,有问题,至于用其他的medium,small PropertyPage做资源会不会有问题,我不想玩了MSDN上是这么说的:
    CPropertySheet::DoModal
    Res
    When a property page is created from its corresponding dialog resource, it can cause a first-chance exception. This results from the property page changing the style of the dialog resource to the required style before the page is created. Because resources are generally read-only, this causes an exception. The system handles the exception, and makes a copy of the modified resource. The first-chance exception can therefore be ignored.
    只有第一次使用才出问题,后面不再出现。
    坑逼!
    还有MFC colorbutton的问题我受不了了
    看来MSDN很好的描述了你的问题,不过一般都是用Dialog吧
    我手贱,用的都是page
    还有Mfc colorbutton control,我在dialog资源里面扔一个这个,propertysheet就出不来了,domodal进不了循环
      

  3.   

    我有多次做实验!
    CMyPropertyPage对应的资源里面用dialog没问题,用IDD_PROPPAGE_LARGE,有问题,至于用其他的medium,small PropertyPage做资源会不会有问题,我不想玩了MSDN上是这么说的:
    CPropertySheet::DoModal
    Res
    When a property page is created from its corresponding dialog resource, it can cause a first-chance exception. This results from the property page changing the style of the dialog resource to the required style before the page is created. Because resources are generally read-only, this causes an exception. The system handles the exception, and makes a copy of the modified resource. The first-chance exception can therefore be ignored.
    只有第一次使用才出问题,后面不再出现。
    坑逼!
    还有MFC colorbutton的问题我受不了了
    看来MSDN很好的描述了你的问题,不过一般都是用Dialog吧
    我手贱,用的都是page
    还有Mfc colorbutton control,我在dialog资源里面扔一个这个,propertysheet就出不来了,domodal进不了循环
    微软sample的用法是资源里面放CButton,然后ddx_control关联资源和CMFCColorButton,表瞎折腾,没用的