00001 #ifndef ABUSE_DIALOG_H
00002 #define ABUSE_DIALOG_H
00003
00004 #include <abuse/Init.h>
00005 #include <abuse/SysError.h>
00006
00007
00008
00009 class Dialog: public virtual VirtBase
00010 {
00011 protected:
00012 Dialog(int id, HWND hFather=NULL,bool bIsModal=true,const Init& i=Init())throw(SysError);
00013 virtual ~Dialog();
00014 virtual BOOL dlgProc(UINT uMsg,WPARAM wP,LPARAM lP)=0;
00015 virtual void ctor();
00016 int getResult()const;
00017 HWND m_hWnd;
00018 HWND m_hFather;
00019 private:
00020 static BOOL dialogCommonProc(HWND,UINT,WPARAM,LPARAM);
00021 bool m_bIsModal;
00022 int m_id;
00023 int m_result;
00024 };
00025
00026 #endif //ABUSE_DIALOG_H