CPropertySheet tabs to enable switching between individual cpropertypage pages

Source: Internet
Author: User

Source: http://bbs.csdn.net/topics/390973895

There are three ways to do this:

First Kind

It's your cpropertypage. When you create, the original CPropertySheet class object pointer is passed in as the parent window.

cpropertypage::create (UINT nidtemplate,cwnd* pParentWnd= NULL)

Then, in the menu command message processing, use the

CPropertySheet *pparent = (CPropertySheet *) GetParent ();

pparent->setactivepage (ipage);

The second Kind

is to save the CPropertySheet object pointer in your CPropertyPage class, cpropertypage the object construction, The pointer is then setactivepage directly through the menu command message processing.


Third Kind

is to save the window handle of the CPropertySheet object in your CPropertyPage class, pass it in when the object is constructed CPropertyPage, and pass the handle to the menu command message processing CPropertySheet Send a custom message,CPropertySheet receive this message again Setactivepage

CPropertySheet tabs to enable switching between individual cpropertypage pages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.