How do I use the handle returned by pIProvTaskPage->GetPage()?
From: TVR Fan (nosuch_at_address.com)
Date: 04/06/04
- Next message: Philipp Huber: "Re: CAsyncSocke in release mode - crash"
- Previous message: Headache: "Re: OT: virtual destructors"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Apr 2004 11:08:06 +0100
I'm really up against the wall here, any help at all would be wonderful.
I'm adding the Schedule and Settings pages to a wizard that is creating
Scheduled Task Items. The OnNext() handler on the first page of the wizard
calls NewWorkItem() to create the task and then pIProvTaskPage->GetPage() to
retrieve handles to the Schedule and Settings pages and finally adds those
pages to the wizard.
The added pages are displayed as expected but when I get to the final page
in the wizard, there are no triggers in the task object, even though I have
added some on the Schedule page.
Having created the work item with NewWorkItem(), should I be persisting it
before getting the dialog pages? I currently only call IPersistFile::Save()
at the end, in OnWizardFinish().
Should I be explicitely telling the Schedule and Settings pages to add their
settings to the new task? The documentation implies that this is done
automagically. If I do need to do this, how do I do it? GetPage() only gives
me a window handle, not an object I can interact with.
I've been staring at this problem for weeks now and its becoming a serious
headache with my deadlines.
--- Al.
- Next message: Philipp Huber: "Re: CAsyncSocke in release mode - crash"
- Previous message: Headache: "Re: OT: virtual destructors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|