DDE.C
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:25k
源码类别:
Windows编程
开发平台:
Visual C++
- /******************************************************************************
- * This is a part of the Microsoft Source Code Samples.
- * Copyright (C) 1993-1997 Microsoft Corporation.
- * All rights reserved.
- * This source code is only intended as a supplement to
- * Microsoft Development Tools and/or WinHelp documentation.
- * See these sources for detailed information regarding the
- * Microsoft samples programs.
- ******************************************************************************/
- /***************************************************************************
- * *
- * MODULE : dde.c *
- * *
- * PURPOSE : Contains routines for handling of DDE interaction with *
- * DDEML. *
- * *
- ***************************************************************************/
- #include "client.h"
- #include <string.h>
- #include <memory.h>
- #include "infoctrl.h"
- #include "huge.h"
- TCHAR szT[100];
- /****************************************************************************
- * *
- * FUNCTION : CreateXactionWindow() *
- * *
- * PURPOSE : Creates a transaction window for the given transaction *
- * under the given conversation window. *
- * *
- * RETURNS : TRUE - If successful. *
- * FALSE - otherwise. *
- * *
- ****************************************************************************/
- HWND CreateXactionWindow(
- HWND hwndMDI,
- XACT *pxact)
- {
- PTSTR pszFmt, pszItem;
- PTSTR pData;
- HWND hwnd;
- pszItem = GetHSZName(pxact->hszItem);
- pszFmt = GetFormatName(pxact->wFmt);
- pData = GetTextData(pxact->hDdeData);
- /*
- * 趖ype/opts哪哪哪