///////////////////////////////////////////////////////////////// // Demo.h - Basic Demonstration of ATL Frame Window Project // // // // There is no wizard for building ATL Frame Windows so my // // approach was to use the ATL Dialog wizard, then modify // // code to get a Frame Window implementation. // // // // Jim Fawcett, CSE775 - Distributed Objects, Spring 2005 // ///////////////////////////////////////////////////////////////// #pragma once #include "resource.h" // main symbols #include // CDemo class CDemo : public CWindowImpl { public: CDemo() { } virtual ~CDemo() { } DECLARE_WND_CLASS(_T("ATLFrame")) BEGIN_MSG_MAP(CDemo) MESSAGE_HANDLER(WM_PAINT, OnPaint) MESSAGE_HANDLER(WM_CREATE, OnCreate) MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown) END_MSG_MAP() void OnFinalMessage(HWND) { ::PostQuitMessage(0); } LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); };