Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
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
 
 
                                     -♦-