CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Location
    Philadelphia, PA
    Posts
    12

    PropertSheet - detecting tab change

    I created a propertysheet application with no real problem. I can't seem to get an on_notify message to let me know when the user has selected a new property page. I am trying the OnSelChange and OnSelChanging messages but apparently I'm doing something wrong.

    Need help (other than mental).

    Thanks,

    Murray


    Murray Bilker [email protected]
    Philadelphia Locking Systems Corp

  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: PropertSheet - detecting tab change

    You might find it easier to derive your property pages from a common ancestor derived from CPropertyPage which overrides OnSetActive, then have that call the sheet to do what is required. Having the intermediate class is often usefull if you want to do clever stuff with help anyway.
    I can't be sure, but didn't think CPropertySheet supported OnSelChange; might just be my memory though.

    Cheers,
    Roger




  3. #3
    Guest

    Re: PropertSheet - detecting tab change

    I agree with Roger. Create an intermediate class and use that to communicate. An example is included in the MSVC examples for disabling tabs in a property page. This has code to determine if the user has selected a new tab in the list of property pages.


  4. #4
    Join Date
    Apr 1999
    Posts
    2

    Re: PropertSheet - detecting tab change

    Is your propertysheet application dialog based or SDI based? I'm trying to create a propertysheet application which is SDI based and support automatic resizing of the various property pages. I tried using NSViews, but I'm having a problem programmatically changing the active tab.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured