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 >
Wrap
Text File
|
1998-06-18
|
2KB
|
37 lines
// TODO: The property sheet attached to your project
// via this function is not hooked up to any message
// handler. In order to actually use the property sheet,
// you will need to associate this function with a control
// in your project such as a menu item or tool bar button.
// The first thing to do here is make sure that there IS
// something you can show in the print preview area. This
// could be as simple as making sure that some item in the
// view is selected.
if (FALSE)
return;
// Save a pointer to the property sheet so that when the
// user chooses Apply Now and the $$VAL:SheetClassName$$ sends
// a corresponding message to $$VAL:ViewClassName$$,
// $$VAL:ViewClassName$$ can easily refer back to the
// property sheet to get the current settings and
// apply them to the currently selected object.
$$VAL:SheetPointer$$ = new $$VAL:SheetClassName$$;
// At this point, the property sheet (and all of its associated
// pages) are created, but there are no windows (including the
// preview window) as yet. When setting values on the property
// sheet, be sure that you don't call anything that tries to
// actually USE the preview window at this point or you will cause
// grave consequences. Save your preview window initializations
// for $$VAL:SheetClassName$$'s InitDialog().
$$VAL:SheetPointer$$->DoModal();
// Normally, this is where you would finish up any processing
// done as part of closing up the property sheet. This includes,
// but is not limited to, updating the view(s) and the document.
delete $$VAL:SheetPointer$$;
$$VAL:SheetPointer$$ = NULL;