Main Page Class Hierarchy Compound List File List Compound Members File Members

# MNWindow.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004 #ifndef MN_WINDOW_H
    00005 #define MN_WINDOW_H
    00006
    00007 // The debugger can't handle symbols more than 255 characters long.
    00008 // STL often creates symbols longer than that.
    00009 // When symbols are longer than 255 characters, the warning is disabled.
    00010 #pragma warning(disable:4786)
    00011
    00012 #include <windows.h>
    00013 #include <vector>
    00014
    00015 #include "MNComponent.h"
    00016
    00017 using namespace std;
    00018
    00064 class MNWindow : public MNComponent
    00065 {
    00066   private:
    00067     static int  app_inc;          //The incriment to append to app name
    00068
    00069   protected:
    00070     WNDCLASSEX  wndclass;
    00071     BOOL        looping;
    00072     HBRUSH      bgbrush;
    00073
    00074   public:
    00078     MNWindow( HINSTANCE hInstance,
    00079               int iCmdShow,
    00080               LPSTR Title = NULL,
    00081               LPSTR IconName = NULL,
    00082               LPSTR SmIconName = NULL,
    00083               LPSTR CursorName = NULL,
    00084               LPSTR MenuName = NULL );
    00085
    00089     WPARAM BeginMessageLoop();
    00090
    00091   protected:
    00095     void CreateMNWindow( LPSTR Title = NULL,
    00096                          LPSTR IconName = NULL,
    00097                          LPSTR SmIconName = NULL,
    00098                          LPSTR CursorName = NULL,
    00099                          LPSTR MenuName = NULL );
    00100
    00111     friend BOOL DefWindowCallBack( MNComponent* com, UINT message,
    00112                                    WPARAM wParam, LPARAM lParam );
    00113 };
    00114
    00115 #endif