- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
CREMPOLY.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- /***
- *crempoly.h
- *
- * This is a part of the Microsoft Source Code Samples.
- *
- * Copyright (C) 1992-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.
- *
- *Purpose:
- * This file defines the CRemPoly remote polygon object.
- *
- *Implementation Notes:
- *
- *****************************************************************************/
- class CRemPoly : public IUnknown {
- public:
- static HRESULT Create(CLSID clsid, CRemPoly FAR* FAR*);
- // IUnknown methods
- //
- STDMETHOD(QueryInterface)(REFIID riid, void FAR* FAR* ppvObj);
- STDMETHOD_(unsigned long, AddRef)(void);
- STDMETHOD_(unsigned long, Release)(void);
- // Introduced methods
- //
- HRESULT Draw(void);
- HRESULT Dump(void);
- HRESULT Reset(void);
- HRESULT AddPoint(short x, short y);
- HRESULT EnumPoints(IEnumVARIANT FAR* FAR* ppenum);
- HRESULT GetXOrigin(short FAR* pxorg);
- HRESULT SetXOrigin(short xorg);
- HRESULT GetYOrigin(short FAR* pyorg);
- HRESULT SetYOrigin(short yorg);
- HRESULT GetWidth(short FAR* pwidth);
- HRESULT SetWidth(short width);
- HRESULT get_red(short FAR* psRed);
- HRESULT set_red(short sRed);
- HRESULT get_green(short FAR* psGreen);
- HRESULT set_green(short sGreen);
- HRESULT get_blue(short FAR* psBlue);
- HRESULT set_blue(short sBlue);
- private:
- CRemPoly();
- HRESULT get_i2(DISPID dispid, short FAR* ps);
- HRESULT set_i2(DISPID dispid, short s);
- unsigned long m_refs;
- IDispatch FAR* m_pdisp;
- // NOTE: this enumeration exists simply to allow us to symbolicly
- // index the member name and id arrays (m_rgid and m_rgszMethods).
- // This doesn't (necessarrily) have any connection to the vtable
- // indices, it *only* needs to correspond correctly to the m_rgid
- // and m_rgszMethods arrays.
- //
- enum CREMPOLY_METHODS {
- IMETH_CREMPOLY_DRAW = 0,
- IMETH_CREMPOLY_DUMP,
- IMETH_CREMPOLY_RESET,
- IMETH_CREMPOLY_ADDPOINT,
- IMETH_CREMPOLY_ENUMPOINTS,
- IMETH_CREMPOLY_GETXORIGIN,
- IMETH_CREMPOLY_SETXORIGIN,
- IMETH_CREMPOLY_GETYORIGIN,
- IMETH_CREMPOLY_SETYORIGIN,
- IMETH_CREMPOLY_GETWIDTH,
- IMETH_CREMPOLY_SETWIDTH,
- IMETH_CREMPOLY_GETRED,
- IMETH_CREMPOLY_SETRED,
- IMETH_CREMPOLY_GETGREEN,
- IMETH_CREMPOLY_SETGREEN,
- IMETH_CREMPOLY_GETBLUE,
- IMETH_CREMPOLY_SETBLUE,
- IMETH_CREMPOLY_MAX
- };
- // member IDs - these are used by IDispatch::Invoke to identify the
- // method or property on the remote object we accessing.
- //
- DISPID m_rgdispid[IMETH_CREMPOLY_MAX];
- // member names - these are used to learn the member IDs when we
- // connect to the remote object.
- //
- static OLECHAR FAR* m_rgszMethods[IMETH_CREMPOLY_MAX];
- };