1 /* 2 * Extended MFC message boxes -- Version 1.1a 3 * Copyright (c) 2004 Michael P. Mehl. All rights reserved. 4 * 5 * The contents of this file are subject to the Mozilla Public License 6 * Version 1.1a (the "License"); you may not use this file except in 7 * compliance with the License. You may obtain a copy of the License at 8 * http://www.mozilla.org/MPL/. 9 * 10 * Software distributed under the License is distributed on an "AS IS" basis, 11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 12 * for the specific language governing rights and limitations under the 13 * License. 14 * 15 * The Original Code is Copyright (c) 2004 Michael P. Mehl. All rights 16 * reserved. The Initial Developer of the Original Code is Michael P. Mehl 17 * <michael.mehl@web.de>. 18 * 19 * Alternatively, the contents of this file may be used under the terms of 20 * the GNU Lesser General Public License Version 2.1 (the "LGPL License"), 21 * in which case the provisions of LGPL License are applicable instead of 22 * those above. If you wish to allow use of your version of this file only 23 * under the terms of the LGPL License and not to allow others to use your 24 * version of this file under the MPL, indicate your decision by deleting 25 * the provisions above and replace them with the notice and other provisions 26 * required by the LGPL License. If you do not delete the provisions above, 27 * a recipient may use your version of this file under either the MPL or 28 * the LGPL License. 29 */ 30 31 #pragma once 32 33 #ifndef __AFXWIN_H__ 34 #error 'stdafx.h' muss vor dieser Datei in PCH eingeschlossen werden. 35 #endif 36 37 #include "resource.h" 38 39 class CMsgBoxTestApp : public CWinApp 40 { 41 42 public: 43 44 CMsgBoxTestApp ( ); 45 46 public: 47 48 virtual BOOL InitInstance ( ); 49 50 DECLARE_MESSAGE_MAP() 51 52 // Method for replacing application wide the behavior of the 53 // AfxMessageBox method. 54 virtual int DoMessageBox ( LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt ); 55 56 }; 57 58 extern CMsgBoxTestApp theApp;