IDS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: ids.h
- //
- // Definition of CDropSource
- //
- // Copyright (c) 1992 - 1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _IDS_H_ )
- #define _IDS_H_
- #include "assert.h"
- class CSimpleDoc;
- interface CDropSource : public IDropSource
- {
- int m_nCount;
- CSimpleDoc FAR * m_pDoc;
- CDropSource(CSimpleDoc FAR * pDoc) {
- OutputDebugString("In IDS's constructorrn");
- m_pDoc = pDoc;
- m_nCount = 0;
- };
- ~CDropSource() {
- OutputDebugString("In IDS's destructorrn");
- } ;
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- // *** IDropSource methods ***
- STDMETHODIMP QueryContinueDrag (BOOL fEscapePressed, DWORD grfKeyState);
- STDMETHODIMP GiveFeedback (DWORD dwEffect);
- private:
- };
- #endif