How do I use the handle returned by pIProvTaskPage->GetPage()?

From: TVR Fan (nosuch_at_address.com)
Date: 04/06/04


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.



Relevant Pages

  • Re: defrag XP
    ... Unfortunatly the Wizard that XP provides doesn't actually give you the ... password, the defrag won't run, because the user it's trying to "run as" ... Set the Schedule tab however you want. ... On the Settings tab, again set the options you want. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Encryption and File settings and transfer wizard
    ... Subject: RE: Encryption and 'File settings and transfer wizard' ... After I did the restore, ... looked for the .pst files and the folder was empty. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Problems with ISA2004 during SP1 upgrade
    ... Microsoft CSS Online Newsgroup Support ... | well until I got to the ISA 2004 portion. ... | "The wizard could not export your settings for the ISA 2000 Server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Encryption and File settings and transfer wizard
    ... When using the wizard it first asks if this is the New computer or Old ... 'You can save files and settings to any disk drive or folder on your ... is a 40GB partition where my 'C' drive is a 10GB partition. ...
    (microsoft.public.windowsxp.security_admin)
  • Problems integrating Windows Sheduled Tasks into application
    ... I'm writing a wizard that will add a job to the Windows Scheduled Tasks. ... Unfortunately, when the task is saved, the schedule settings are not and I ... BOOL CWizardSchedule::Run ... // they point to a persistant object (the object is created ...
    (microsoft.public.vc.mfc)