[RESOLVED] Skip And Rotate View A Page In Property Sheet
Hi,
When i click the back button, I like to skip some old pages & rotate pages view in my property sheet.
I have 5 pages, when i clicked the User button in my MainDlg the below function called like,
User Button Clicked -> Page1 Opened
Next Button Clicked
-> Page2 -> Page3 -> Page4 -> Page5
Back Button Clicked
Page1 <- Page2 <- Page3 <- Page4 <- Page5
My requirement is,
User Button Clicked -> Page1 Opened Next Button Clicked -> Page2 -> Page3 -> Page4-> Page5 -> Page1(Again called 1st page automatically - rotate pages view) Back Button Clicked(Cur Page loc is Page5) (Start the prev Process)Page5 <- Page1 <- (Skip the Page2 & 3)Page4 <- Page5
My requirement is,
User Button Clicked -> Page1 Opened Next Button Clicked -> Page2 -> Page3 -> Page4-> Page5 -> Page1(Again called 1st page automatically - rotate pages view)
oSht.AddPag(&p1, Page1::IDD);
oSht.AddPag(&p2, Page2::IDD);
oSht.AddPag(&p3, Page3::IDD);
oSht.AddPag(&p4, Page4::IDD);
oSht.AddPag(&p5, Page5::IDD);
oSht.AddPag(&p1, Page1::IDD);
And what do you mean by "rotate pages view"?
This code working good for Next Button Click event.That is, Page5->Page1->Page2 ->.. etc
How can i set the above code for Back Button Click Event(That is, I'm mentioned as Page Rotation When i click both next and back).
That is, <-Page4<-Page5<-Page1<-Page2
How is possible?
Originally Posted by VictorN
Remove page2 and page3!
I like to do the below(ALL) process in the same button. That is,
Next Button Click Event : Page1->Page2->Page3->Page4->page5->Page1->etc... Working Good.
Back Button Click Event :
Process 1 (Remove Pages 2 & 3) : <-Page1<-Page4<-Page5
Process 2 (Page Rotation) : etc... <-Page1<-Page4<-Page5<-Page1<-Page4<-Page5
What did you try?
How did you try? (Sorry, but I don't see how you use CPropertyPage::OnWizardBack / CPropertyPage::OnWizardNext methods)
Code:
// refer to CPropertyPage class members for a description of this function
// return -1 to prevent changing pages
// to move to a page other than the previous one, return the
// Dialog resource ID of the page to display
LRESULT CNewWizPage::OnWizardBack()
{
return 0;
}
if i change the return -1 to prevent changing pages - Working good.
But i don't know to override CPropertyPage::OnWizardBack method.
It is a virtual method!
So rather than use the same one (always returning zero) override it in the derived page classes to return the values these pages need (zero or the dialog resource ID of the page to go to)
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.