CWinApp::OnDDECommand

调用由框架,当主框架窗口收到DDE时执行消息。

virtual BOOL OnDDECommand(
   LPTSTR lpszCommand 
);

参数

  • lpszCommand
    指向应用程序接收的DDE命令字符串。

返回值

非零,则命令将处理;否则为0。

备注

检查命令是否请求打开文档,并且,如果是这样,打开指定的默认实现文档。 当用户双击数据文件时,Windows文件管理器通常将此类DDE命令字符串。 重写此功能添加到其他DDE执行命令的处理,例如命令打印。

示例

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

请参见

参考

CWinApp选件类

层次结构图

CWinApp::EnableShellOpen