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

CWindowImpl ATL Object Wizard

, 24 Apr 2001
Rate this:
Please Sign up or sign in to vote.
This is an ATL Object Wizard that eases window development using CWindowImpl. It removes the redundant copy-n-paste of code between class implementations
<!-- Link to source file download -->
  • Download Source Files (MSI)- 175 Kb
  • Download Source Files (FLAT)- 29 Kb
  • <!--
  • Download Windows 9x MSI Installer (From for those without MSI Support Installed)- 1.3 Mb
  • Download Windows NT MSI Installer (From for those without MSI Support Installed)- 1.3 Mb
  • --> <!-- Article image -->

    Logo - RBCWindowImpl.gif


    This whole project came about after writing numerous CWindowImpl derived classes. I was tired of tracking down a CWindowImpl derived class that I could use as a base. Then from that derived class copy and pasting code segments from it to my newly derived CWindowImpl class implementation. I decided that instead of doing this repeatitive process every time I needed it, I would let an ATL Object Wizard do it for me with just a few clicks and key presses. I hope it eases your development and allows you to be more productive.


    • Extract the MSI (Microsoft Installer) file from the source zip file above.
    • Run the RBCWindowImpl MSI file. It will install the files to the correct location as long as you set the install directory to be the drive and directory of Visual Studio.

    Examples of <DEVSTUDIO>:

    • D:\Program Files\Microsoft Visual Studio
    • C:\MyDevEnv

    It will then install the files to <DEVSTUDIO>\Common\MSDev98\Template\ATL.


    To create a CWindowImpl derived implementation, do the following:

    1. Start the ATL Object Wizard using the 'New ATL Object' option avalable from the Insert menu.

      Logo - RBCWindowImpl1.gif

    2. Select the "CWindowImpl" ATL Object Wizard component from the "RadBytes" category.

      Logo - RBCWindowImpl2.gif

    3. Fill in the Names Dialog page with your CWindowImpl derived class name information.
    4. Select CWindowImpl Property Page to Customize CWindowImpl derived class information (optional).

      CWindowImpl Property Page (class view) - RBCWindowImpl3.gif
      Options available when DECLARE_WND_CLASS is selected.

      CWindowImpl Property Page (classex view) - RBCWindowImpl4.gif
      Options available when DECLARE_WND_CLASS_EX is selected.

      CWindowImpl Property Page (superclass view) - RBCWindowImpl5.gif
      Options available when DECLARE_WND_SUPERCLASS is selected.

    5. Click Ok
    6. Implement your derived CWindowImpl class.

    Generated Code And Output

    Your project has now been fitted with the CWindowImpl derived class you have named and is ready for use. It gives a basic implementation without any message handlers added. The output created is a Source and Header files from the Short Name supplied in the ATL Object Wizard property page. The only existing file that gets modified by the wizard is your Project file (.DSP).


    The code generated will compile both under UNICODE and ANSI.


    31 Jul 2000 - Initial Release
    15 Aug 2000 - Fixed bug in template header file for Message map name.
    - Fixed MSI install for correct placement of files.
    - Fixed DECLARE_WND_SUPERCLASS original class name bug for common controls.
    - Removed Debug condition from ctl file for wizard.
    25 Apr 2001 - Packaged for deployment in plain old ZIP file with install instructions.


    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

    Erik Thompson
    Web Developer
    United States United States
    Erik lives in Redmond, Washington. He works as a Senior Software Engineer specializing in C++, COM, ATL and the middle-tier and now .NET. When he isn't coding for work, he can be found trying to extend Internet Explorer with yet another Desk band or simplifying his development process with ATL Object Wizards.
    He spends his free time snowboarding, mountain biking, and online gaming.

    Comments and Discussions

    GeneralDeskBand Install Vista Issue PinmemberDabara18-Aug-09 21:25 
    General[Message Removed] Pinmembernompel6-Oct-08 10:14 
    GeneralGreat, thanks! Pinmemberpeterchen26-Jul-06 0:58 
    GeneralGreat Work PinmemberPrafulla Tekawade21-Jul-06 2:25 
    GeneralRe: Great Work PinmemberPrafulla Tekawade14-Sep-06 4:34 
    QuestionI have installed ,but there isn't icon like above,why? Pinmemberwangshilei28-Apr-05 18:35 
    AnswerRe: I have installed ,but there isn't icon like above,why? Pinmemberyuzhenzhen11-Apr-06 2:56 
    GeneralRe: I have installed ,but there isn't icon like above,why? PinmemberPaulMdx18-Aug-06 0:54 
    GeneralHello PinsussAnonymous26-Apr-05 3:28 
    Generalwizard choise BUTTON no picture Pinmembermargus19-Nov-03 4:40 
    GeneralRe: wizard choise BUTTON no picture PinsitebuilderErik Thompson19-Nov-03 11:19 
    QuestionCan i pass the window message from ... PinmemberSaeed A. Siddiqui9-Nov-02 17:00 
    AnswerRe: Can i pass the window message from ... PinsitebuilderErik Thompson13-Nov-03 8:07 
    QuestionVS.NET support? PinmemberJörgen Sigvardsson30-Aug-02 23:48 
    AnswerRe: VS.NET support? PinsitebuilderErik Thompson13-Nov-03 7:45 
    GeneralRe: VS.NET support? Pinmemberbramp26-May-04 7:58 
    Generalabout Toolbar Pinmemberomid daghdar24-Aug-02 0:12 
    GeneralRe: about Toolbar PinsitebuilderErik Thompson13-Nov-03 7:59 
    QuestionCan Not Download PinmemberFaisal Aslam3-Jul-02 10:18 
    AnswerRe: Can Not Download PinsitebuilderErik Thompson3-Jul-02 11:09 
    GeneralRe: Can Not Download PinmemberFaisal Aslam7-Jul-02 1:44 
    GeneralAdding a drop-menu to the button PinmemberPaul Ingles19-Apr-02 9:51 
    QuestionRadBytes?? PinmemberAnonymous20-Mar-02 20:41 
    AnswerRe: RadBytes?? PinmemberAnonymous19-Apr-02 1:38 
    GeneralI can select atl templates... PinmemberMadNEt13-Jan-02 6:51 
    GeneralRe: I can select atl templates... Pinmembercool_bamit18-Apr-02 7:11 
    QuestionIt can only be used in ATL projects ? PinmemberPhil.B23-Aug-01 10:32 
    Generalmsi needs service pack PinmemberRashid Thadha25-Apr-01 6:49 
    GeneralRe: msi needs service pack PinmemberErik Thompson25-Apr-01 8:13 
    GeneralCant catch the exe files PinsussJørgen Granborg23-Aug-00 11:58 
    GeneralRe: Cant catch the exe files PinsussErik Thompson23-Aug-00 18:03 
    QuestionAre There Problems Grabbing EXE install? PinsussErik Thompson2-Aug-00 19:59 
    AnswerRe: Are There Problems Grabbing EXE install? PinsussMike Player4-Aug-00 5:09 
    GeneralRe: Are There Problems Grabbing EXE install? PinsussErik Thompson4-Aug-00 6:28 

    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 | Terms of Use | Mobile
    Web01 | 2.8.150327.1 | Last Updated 25 Apr 2001
    Article Copyright 2000 by Erik Thompson
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid