CWinApp::OnDDECommand
virtualBOOLOnDDECommand(LPTSTRlpszCommand**);**
Return Value
Nonzero if the command is handled; otherwise 0.
Parameters
lpszCommand
Points to a DDE command string received by the application.
Remarks
Called by the framework when the main frame window receives a DDE execute message. 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.
Example
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;
}
CWinApp Overview | Class Members | Hierarchy Chart
See Also CWinApp::EnableShellOpen