Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Called by the framework when the main frame window receives a DDE execute message.

virtual BOOL OnDDECommand( 
   LPTSTR lpszCommand  

Points to a DDE command string received by the application.

Nonzero if the command is handled; otherwise 0.

The default implementation checks whether the command is a request to open a document and, if so, opens the specified document. The Windows File Manager usually sends such DDE command strings when the user double-clicks a data file. Override this function to handle other DDE execute commands, such as the command to print.

BOOL CMyApp::OnDDECommand(LPTSTR lpszCommand)
   if (CWinApp::OnDDECommand(lpszCommand))
      return TRUE;

   // Handle any DDE commands recognized by your application 
   // and return TRUE.  See implementation of CWinApp::OnDDEComand 
   // for example of parsing the DDE command string. 

   // Return FALSE for any DDE commands you do not handle. 
   return FALSE;

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.