Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Dialog.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef DIALOG_H
00005 #define DIALOG_H
00006 
00007 #include "Window.h"
00008 #include "AbstractButton.h"
00009 
00010 namespace wkgl {
00011 
00022 class Dialog : public Window
00023 {
00024   protected:
00025     BOOL modal;       
00026     String title;   
00027     BOOL isMade;      
00028     BYTE cid;         
00029     
00033     AbstractButton *defbut;
00034 
00038     WORD* align(WORD* in);
00039   public:
00043     Dialog( Window *parent, String *title = NULL, BOOL modal = TRUE );
00044 
00045     ~Dialog();
00046 
00047     virtual BOOL create( Control *parent );
00048 
00052     virtual BOOL isModal();
00053 
00057 //    virtual void addDefButton( AbstractButton *b );
00058 
00062     virtual BOOL show();
00063 
00067     virtual BOOL hide();
00068 
00072     virtual void setDefaultCloseOperation( SFLAG operation );
00076     virtual BOOL callBack(Component* com, UINT message, 
00077                           WPARAM wParam, LPARAM lParam);
00078 
00082     virtual LRESULT fireChildEvents( UINT message, WPARAM wParam, 
00083                                      LPARAM lParam );
00084 
00088     virtual LRESULT fireEvents( HWND hwnd, UINT message, 
00089                                 WPARAM wParam, LPARAM lParam );
00090 
00094   friend INT _stdcall dialogProc( HWND hwndDlg, UINT uMsg, 
00095                                       WPARAM wParam, LPARAM lParam );
00096 
00097 };
00098 }
00099 #endif

Generated on Tue Apr 29 03:18:49 2003 for GuiLib by doxygen1.2.18