Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COleServer::OnOpenDoc
COleServer                                  Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
  protected:
      virtual COleServerDoc* OnOpenDoc( const char FAR* <lpszDoc> );
 
  Parameter   Description
 
  <lpszDoc>   A null-terminated string that usually specifies the name of
              an existing document.
 
  Remarks
 
  You must implement this callback function to open an existing OLE
  server-linked document for editing. It is called by OLESVR.DLL in
  response to the client's edit request.
 
  Note that this function is specialized for linked documents; the
  OnEditDoc member function is called for embedded documents.
 
  Return Value
 
  If successful, a pointer to an OLE server document; otherwise NULL.
 
  See Also
 
  COleServer::OnEditDoc
 
 
                                     -♦-