[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
This little macro can be used to improve portability between Windows
and MEWEL programs. In MEWEL, _DialogBox() is a macro defined as follows:
#define _DialogBox(h,id,hWnd,pf) DialogBox(LoadDialog(h,id,hWnd,pf))
In your source code, you can do the following :
#ifdef MEWEL
#include "window.h"
#else
#include <windows.h>
#define _DialogBox DialogBox
#endif
/*
The following will work without change under both MEWEL and
Microsoft Windows....
*/
case IDM_ABOUT:
lpProcAbout = MakeProcInstance(About, hInst);
_DialogBox(hInst, "AboutBox", hWnd, lpProcAbout);
FreeProcInstance(lpProcAbout);
break;
See Also:
DialogBox
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson