CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    106

    Debug error in cpropertysheet::removepage()

    Hi !!

    I got a debug error in case of removing propertypage
    i.e. CPropertysheet::Removepage(nPage)

    i found the error while debugging in the place of sendmessage...
    code as folloes...

    if(hwnd != null)
    sendmessage(PSM_REMOVEPAGE,nPage)

    Can anybody solve this prob.

    Regards,
    veda.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Debug error in cpropertysheet::removepage()

    Your PropertySheet window seams to have yet been not created! (neither CPropertySheet::Create nor CPropertySheet::OnInitDialog was called)

  3. #3
    Join Date
    May 1999
    Location
    West Sussex, England
    Posts
    1,939

    Re: Debug error in cpropertysheet::removepage()

    You also cannot remove the final page. A PropertySheet must contain at least 1 page aftre it has been created.
    Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
    Please remember to rate useful answers. It lets us know when a question has been answered.

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