Click here to Skip to main content
15,888,733 members
Articles / Desktop Programming / WTL

Add a WTL MDI window into an ATL Control

Rate me:
Please Sign up or sign in to vote.
4.77/5 (12 votes)
11 Sep 20031 min read 68.2K   1.6K   20  
This article will show you how to make MDI window of WTL into ATL control by using a real world example.

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

/* link this file in with the server and any clients */


 /* File created by MIDL compiler version 6.00.0361 */
/* at Fri Sep 12 13:53:45 2003
 */
/* Compiler settings for .\MdiControl.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#if !defined(_M_IA64) && !defined(_M_AMD64)


#pragma warning( disable: 4049 )  /* more than 64k source lines */


#ifdef __cplusplus
extern "C"{
#endif 


#include <rpc.h>
#include <rpcndr.h>

#ifdef _MIDL_USE_GUIDDEF_

#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#else // !_MIDL_USE_GUIDDEF_

#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
{
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}

#endif !_MIDL_USE_GUIDDEF_

MIDL_DEFINE_GUID(IID, IID_IMdiEx,0xEF464E58,0x9C72,0x4633,0xA7,0x7F,0xB6,0x73,0x82,0x59,0xF5,0x77);


MIDL_DEFINE_GUID(IID, LIBID_MdiControlLib,0xD1C7B9A1,0x7D17,0x4DB1,0x8D,0x43,0xBC,0x51,0x25,0x07,0xCD,0x1D);


MIDL_DEFINE_GUID(IID, DIID__IMdiExEvents,0x75DB4DB3,0x36B4,0x4346,0xB6,0x3F,0x62,0x22,0x9D,0x24,0x21,0x71);


MIDL_DEFINE_GUID(CLSID, CLSID_MdiEx,0x84F601A5,0x696D,0x40E1,0xA3,0x1D,0xE4,0x82,0x29,0x54,0x86,0x39);

#undef MIDL_DEFINE_GUID

#ifdef __cplusplus
}
#endif



#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions