Click here to Skip to main content
Click here to Skip to main content

CPL++ v1.1 - Control Panel Applets

By , 3 Mar 2000
Rate this:
Please Sign up or sign in to vote.
  • Download source files - 14 Kb
  • Introduction

    Welcome to CPL++ v1.1, An MFC class framework to encapsulate developing Control Panel Applets.

    History
    Usage
    Contacting the Author


    History

    V1.0 (18 July 1999)
    • Initial public release.

    V1.1 (20 November 1999)

    • Now fully supports CPL_INQUIRE as well as CPL_NEWINQUIRE messages.
    • Now supports a document template approach to creating applets. This means that you can easily support multiple applets per dll using the CPL++ framework.
    • Demo program now supports demo'ing both static and dynamic applets.
    • Control panel applet now always output as a ".cpl" file instead of a ".dll" file.
    • Now supports displaying the specified property page (via the CPL_STARTWPARMS message) when a control panel applet is called via the rundll32 command line.


    Usage

    To use CPL++ in your applets all you need to do is:

    • Ensure your DLL has a DEF file and exports the sole function CPlApplet. Note: You do not need to write this function as it is provided internally by the CPL++ code.
    • Include cpl_pp.h and cpl_pp.h in your project (configured to produce a standard DLL including MFC either dynamically or statically).
    • Derive a class from CControlPanelApp and override its OnInit() function. In it call AddApplet() to add each applet you want. Normally, you would do this just once, but for demonstration purposes, the sample creates two applets.
    • Each applet you add should be an instance of the class CControlPanelApplet. It should be created on the heap. See CApp::OnInit() for an example. Depending on which constructor you call, you will have created an dynamic (responds to CPL_NEWINQUIRE) or static (responds to CPL_INQUIRE) control panel applet.
    • The code is UNICODE enabled and UNICODE build configurations are provided for the test applet.
    • For further information on developing and debugging control panel applets, please refer to the MSDN.


    Contacting the Author

    PJ Naughter
    Email: pjn@indigo..ie
    Web: http://www.naughter.com
    20 November 1999


    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

    About the Author

    PJ Naughter

    United States United States
    No Biography provided

    Comments and Discussions

     
    GeneralProblem on Win2k with ALL MFC Control Panel Apps PinmemberBababooey31-Aug-04 22:42 
    GeneralRe: Problem on Win2k with ALL MFC Control Panel Apps Pinmemberpjnaughter1-Sep-04 1:39 
    GeneralRe: Problem on Win2k with ALL MFC Control Panel Apps PinmemberBababooey1-Sep-04 11:17 
    Generalapplet 1 in demo doesnt get focus when double click on its icon in control panel PinsussVijay Chegu2-Jun-03 5:01 
    GeneralRe: applet 1 in demo doesnt get focus when double click on its icon in control panel Pinmemberpjnaughter2-Jun-03 5:20 
    GeneralRe: applet 1 in demo doesnt get focus when double click on its icon in control panel PinsussVijay Chegu2-Jun-03 18:38 
    GeneralRe: applet 1 in demo doesnt get focus when double click on its icon in control panel PinsussVijay Chegu3-Jun-03 6:11 
    GeneralRe: applet 1 in demo doesnt get focus when double click on its icon in control panel Pinmemberpjnaughter3-Jun-03 23:33 
    Just to let you know that I have released a update on my web site (www.naughter.com) which addresses this issue without the need to break the polymorphic behaviour of the OnRun function
    GeneralRe: applet 1 in demo doesnt get focus when double click on its icon in control panel PinsussVijay Chegu11-Jun-03 1:44 
    GeneralSuggestion PinmemberArmen Hakobyan29-Jul-02 12:20 
    GeneralRe: Suggestion Pinmemberpjnaughter8-Aug-02 4:05 
    GeneralVery good work PinmemberArmen Hakobyan29-Jul-02 11:12 
    QuestionHow to remove the Applet? PinmemberAnonymous21-Feb-02 17:05 
    AnswerRe: How to remove the Applet? PinmemberAnonymous18-Mar-02 9:52 
    GeneralMaking Changes Pinmemberconfuses7-Dec-01 3:00 
    GeneralRe: Making Changes PinmemberAnonymous18-Mar-02 10:31 
    GeneralRe: Making Changes Pinmemberpjnaughter8-Aug-02 4:07 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Mobile
    Web04 | 2.8.140415.2 | Last Updated 4 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2014
    Terms of Use
    Layout: fixed | fluid