Click here to Skip to main content
15,883,919 members
Articles / Desktop Programming / WTL

WTL Icon Edit

Rate me:
Please Sign up or sign in to vote.
4.72/5 (14 votes)
28 Oct 20044 min read 64.3K   2.8K   22  
An article on WTL edit control with Icon.
#if !defined(_TITLETIPHOOK_H_INCLUDED_)

#pragma once

#include "MessageHook.h"

#ifndef WM_XBUTTONDOWN

#define WM_XBUTTONDOWN                  0x020B
#define WM_XBUTTONUP                    0x020C
#define WM_XBUTTONDBLCLK                0x020D

#endif	// #ifndef WM_XBUTTONUP

#ifndef WM_MOUSEWHEEL

#define WM_MOUSEWHEEL                   0x020A

#endif	// #ifndef WM_MOUSEWHEEL

namespace codeproject
{

class CTitleTipHook : public CMessageHook<CTitleTipHook>
{
public:
	enum HOOKCONTROL
	{
		EditHook		= 0,
		ListBoxHook		= 1,
		ComboBoxHook	= 2,
	} m_controlType;

	CTitleTipHook() : CMessageHook<CTitleTipHook>(TRUE)
	{
	}
};

}	// namespace codeproject

#endif // !defined(_TITLETIPHOOK_H_INCLUDED_)

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
Other
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions