|
From: Ron H on 2 May 2008 12:12 I have a CPropertySheet object with three pages. How do I detect user input on any page and enable the "Apply" button to save the changes? Thanks As Always! Ron H. ----------------- www.Newsgroup-Binaries.com - *Completion*Retention*Speed* Access your favorite newsgroups from home or on the road -----------------
From: AliR (VC++ MVP) on 2 May 2008 12:31 Detect the input on the page which in turn will tell the sheet to turn on the apply button. AliR. "Ron H" <rnharsh(a)nospam.net> wrote in message news:481b39db$0$13092$8d2e0cab(a)news.newsgroup-binaries.com... >I have a CPropertySheet object with three pages. How do I detect user input >on any page and enable the "Apply" button to save the changes? > > Thanks As Always! > Ron H. > > ----------------- > www.Newsgroup-Binaries.com - *Completion*Retention*Speed* > Access your favorite newsgroups from home or on the road > -----------------
From: Ron H on 2 May 2008 13:39 Is that supposed to be automatic? I do use event handlers to deal with most of the input on each page but I don't understand how to get that information back to the sheet. Do I post a message? Ron H. ----------------- www.Newsgroup-Binaries.com - *Completion*Retention*Speed* Access your favorite newsgroups from home or on the road -----------------
From: Joseph M. Newcomer on 2 May 2008 14:25 One way to handle property pages on a property sheet is to think of the document/view model. Think of the property sheet as the "document" and the pages as the "views". So information about whether or not things changed would be part of the property sheet. You could SendMessage to it (because you are in the same thread), PostMessage, or subclass the property sheet and call methods in it, just like you have methods for CDocument. I typically just call mine SetModified and it takes a boolean. When the modified flag is set, the Apply button is enabled. joe On Fri, 2 May 2008 12:39:06 -0500, "Ron H" <rnharsh(a)nospam.net> wrote: >Is that supposed to be automatic? I do use event handlers to deal with most >of the input on each page but I don't understand how to get that information >back to the sheet. Do I post a message? > >Ron H. > > >----------------- >www.Newsgroup-Binaries.com - *Completion*Retention*Speed* >Access your favorite newsgroups from home or on the road >----------------- Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Paresh on 5 May 2008 06:41 Hi, Please have a look at API CPropertyPage::SetModified(). Also see the example shown in the MSDN for this API. I Hope, this is what you are looking for ? Regards, Paresh. "Ron H" wrote: > I have a CPropertySheet object with three pages. How do I detect user input > on any page and enable the "Apply" button to save the changes? > > Thanks As Always! > Ron H. > > > ----------------- > www.Newsgroup-Binaries.com - *Completion*Retention*Speed* > Access your favorite newsgroups from home or on the road > ----------------- >
|
Pages: 1 Prev: transparent window after bringWindowToTop is grey Next: Dynamically creating CDockablePanes |