home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / wint1_92 / shaw / msgbox.h < prev    next >
C/C++ Source or Header  |  1991-10-29  |  284b  |  25 lines

  1. // msgbox.h
  2.  
  3. #if !defined(MSGBOX_H)
  4. #define MSGBOX_H
  5.  
  6. #include<windows.h>
  7.  
  8. class MsgBox
  9.     {
  10.  
  11. public:
  12.     static HWND myhWnd;
  13.  
  14.     MsgBox(char *msg,HWND hWnd = myhWnd)
  15.         {
  16.         MessageBox(hWnd,msg,"",MB_ICONEXCLAMATION);
  17.         }
  18.  
  19.     };
  20.  
  21. #endif
  22.  
  23.  
  24.  
  25.