Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - this little macro can be used to improve portability between windows http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson