home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / IDE / PROPSHT.DLL / TEMPLATE / 22348 < prev    next >
Text File  |  1998-06-18  |  2KB  |  37 lines

  1.     // TODO: The property sheet attached to your project
  2.     // via this function is not hooked up to any message
  3.     // handler.  In order to actually use the property sheet,
  4.     // you will need to associate this function with a control
  5.     // in your project such as a menu item or tool bar button.
  6.  
  7.     // The first thing to do here is make sure that there IS 
  8.     // something you can show in the print preview area.  This 
  9.     // could be as simple as making sure that some item in the 
  10.     // view is selected.
  11.     if (FALSE)
  12.         return;
  13.  
  14.     // Save a pointer to the property sheet so that when the
  15.     // user chooses Apply Now and the $$VAL:SheetClassName$$ sends
  16.     // a corresponding message to $$VAL:ViewClassName$$,
  17.     // $$VAL:ViewClassName$$ can easily refer back to the
  18.     // property sheet to get the current settings and
  19.     // apply them to the currently selected object.
  20.     $$VAL:SheetPointer$$ = new $$VAL:SheetClassName$$;
  21.  
  22.     // At this point, the property sheet (and all of its associated
  23.     // pages) are created, but there are no windows (including the
  24.     // preview window) as yet.  When setting values on the property
  25.     // sheet, be sure that you don't call anything that tries to
  26.     // actually USE the preview window at this point or you will cause 
  27.     // grave consequences.  Save your preview window initializations 
  28.     // for $$VAL:SheetClassName$$'s InitDialog().
  29.  
  30.     $$VAL:SheetPointer$$->DoModal();
  31.  
  32.     // Normally, this is where you would finish up any processing
  33.     // done as part of closing up the property sheet.  This includes,
  34.     // but is not limited to, updating the view(s) and the document.
  35.  
  36.     delete $$VAL:SheetPointer$$;
  37.     $$VAL:SheetPointer$$ = NULL;