/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2007.08.03 * ³» ¿ë : * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" #include "Label.h" #include "Button.h" class cBaseStage; /// ¸Þ½ÃÁö Çڵ鷯 class cMsgBoxHandler { public: virtual void MsgBoxEventParser( unsigned int event, unsigned int result ) = 0; }; /// ¸Þ½ÃÁö À©µµ¿ì class cMsgWindow : public cUIWindow { public: cMsgWindow(); virtual ~cMsgWindow(); bool Create( unsigned int eventType, cMsgBoxHandler* msgHandler, const cString& skinPrefix, cUIContainer* parent, unsigned int id ); void ShowModal( unsigned int ansType = MB_OK ); protected: bool OnCreate( cUINodeProperty* property ); void OnProcess( unsigned long accumTime ); virtual void OnOk(); virtual void OnCancel(); protected: /// ¸Þ½ÃÁö¹Ú½º À̺¥Æ® unsigned int mEventType; /// ¸Þ½ÃÁö Çڵ鷯 cMsgBoxHandler* mMsgHandler; /// ´ë´ä ŸÀÔ unsigned int mAnsType; /// ½ºÅ² Á¢µÎ¾î cString mSkinPrefix; /// ¶óº§ cLabel mCaptionLabel; cLabel mTextLabel; /// ¹öư cButton mOk_OkButton; cButton mOkCancel_OkButton; cButton mOkCancel_CancelButton; };