Click here to Skip to main content
11,490,543 members (36,743 online)
Click here to Skip to main content
Add your own
alternative version

How to make a Message Only Window

, 12 Aug 2004 108.3K 1.8K 54
An article on how to make a message only window.
#pragma once


// CMyMessageOnlyWindowClass

//#define wnd_class_name "CMyMessageOnlyWindowClass"
#define HWND_MESSAGE     ((HWND)-3)

const CString THIS_IS_MY_MESSAGE_STRING =  "THIS_IS_MY_MESSAGE_STRING";
const UINT MY_REGISTERED_MESSAGE = ::RegisterWindowMessage(THIS_IS_MY_MESSAGE_STRING);

class CMyMessageOnlyWindowClass : public CWnd
{
public:
	CMyMessageOnlyWindowClass();
	virtual ~CMyMessageOnlyWindowClass();
	afx_msg LRESULT DealWithMyRegisteredMsg(WPARAM wParam, LPARAM lParam);
protected:
	DECLARE_MESSAGE_MAP()
};


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

Share

About the Author

bryce
Software Developer (Senior)
Australia Australia
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 13 Aug 2004
Article Copyright 2004 by bryce
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid