Click here to Skip to main content
13,053,994 members (62,740 online)
Click here to Skip to main content


75 bookmarked
Posted 11 Apr 2003

Win32 dialog helpers

, 18 Apr 2003
Easy support for dialog resizing and ActiveX controls
// main.cpp : Defines the entry point for the application.

#include "stdafx.h"
#include "resource.h"
#include "ResizableGrip.h"
#include "AboutDialog.h"
#include "SampleDialog.h"
#include "SampleAxDialog.h"
#include "WindowsMediaAxDialog.h"
#include "WebBrowserAxDialog.h"

CComModule _Module;

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)

    InitCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX);
    BOOL bRet = InitCommonControlsEx(&InitCtrls);

    _Module.Init(NULL, hInstance, &LIBID_ATLLib);

	// CAboutDialog dlg; // about box
	// CSampleDialog dlg; // resizable dialog
	// CSampleAxDialog dlg; // sample dialog
	// CWindowsMediaAxDialog dlg; // windows media player
	CWebBrowserAxDialog dlg; // web browser

 	// TODO: Place code here.


	return 0;

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.


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


About the Author

Addicted to reverse engineering. At work, I am developing business intelligence software in a team of smart people (independent software vendor).

Need a fast Excel generation component? Try xlsgen.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 19 Apr 2003
Article Copyright 2003 by Stephane Rodriguez.
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid