Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / WTL

WTL Helper

Rate me:
Please Sign up or sign in to vote.
4.92/5 (116 votes)
27 Aug 200713 min read 695.4K   8.8K   190  
Add-in for Microsoft VC++.NET 2003 that helps to insert message handlers for WTL.
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004 Sergey Solozhentsev
// Author: 	Sergey Solozhentsev e-mail: salos@mail.ru
// Product:	WTL Helper
// File:      	AddAltMapDlg.h
// Created:	17.01.2005 9:58
// 
//   Using this software in commercial applications requires an author
// permission. The permission will be granted to everyone excluding the cases
// when someone simply tries to resell the code.
//   This file may be redistributed by any means PROVIDING it is not sold for
// profit without the authors written consent, and providing that this notice
// and the authors name is included.
//   This file is provided "as is" with no expressed or implied warranty. The
// author accepts no liability if it causes any damage to you or your computer
// whatsoever.
//
////////////////////////////////////////////////////////////////////////////////

// This file was generated by WTL Dialog wizard 
// AddAltMapDlg.h : Declaration of the CAddAltMapDlg
#pragma once
#include "../resource.h"
#include "atllttmap.h"
// CAddAltMapDlg

class CAddAltMapDlg : 
	public CDialogImpl<CAddAltMapDlg>,
	public CWinDataExchange<CAddAltMapDlg>,
	public CToolTipMapImpl<CAddAltMapDlg>
{
public:
	CAddAltMapDlg();
	~CAddAltMapDlg();
	enum { IDD = IDD_ADDALTMAPDLG };
	CString m_iNumber;
	CString m_Name;

    BEGIN_MSG_MAP(CAddAltMapDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
        COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK)
        COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnClickedCancel)
    END_MSG_MAP()

	BEGIN_DDX_MAP(CAddAltMapDlg)
		DDX_TEXT(IDC_EDIT_ALTNAME, m_Name)
		DDX_TEXT(IDC_EDIT_ALTNUM, m_iNumber)
	END_DDX_MAP()

	BEGIN_TOOLTIP_MAP(CAddAltMapDlg)
		TIP_CHILDWND(IDC_EDIT_ALTNAME, IDS_TOOLTIP_ALT_NAME)
		TIP_CHILDWND(IDC_EDIT_ALTNUM, IDS_TOOLTIP_ALT_NUM)
	END_TOOLTIP_MAP()
    // Handler prototypes:
    //  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
    //  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
    //  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
};


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
Belarus Belarus
I am a software developer for 3 years.

Comments and Discussions