/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.09.20 * * ³» ¿ë : ½ºÅ² ´ÙÀ̾ó·Î±× * Ãß°¡³»¿ë : * ÀÛ¾÷ÀÏ ÀÛ¾÷ÀÚ ÀÛ¾÷³»¿ë * * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "../resource.h" class cSkinContainerResource; class cSkinDialogResource; /// ½ºÅ² ´ÙÀ̾ó·Î±× class cSkinDialog : public CDialog { public: cSkinDialog( CWnd* parent = 0 ); virtual ~cSkinDialog(); public: /// ¸ð´Þ ´ÙÀ̾ó·Î±× »ý¼º INT_PTR DoModal( cSkinContainerResource* resource ); /// ¸ð´Þ¸®½º ´ÙÀ̾ó·Î±× »ý¼º BOOL Create( cSkinContainerResource* resource ); protected: /// ÆùÆ® ¼³Á¤ void SetFont( const LOGFONT& lf ); void SetFont( LPCTSTR faceName, int size, BYTE charset = 0 ); protected: /// ¸®¼Ò½º ¼³Á¤ void SetResource( cSkinDialogResource* resource ); public: virtual BOOL PreTranslateMessage( MSG* msg ); protected: /// ¸Þ½ÃÁö afx_msg int OnCreate( LPCREATESTRUCT cs ); afx_msg void OnDestroy(); afx_msg void OnPaint(); afx_msg BOOL OnEraseBkgnd( CDC* dc ); afx_msg void OnLButtonDown( UINT flags, CPoint point ); DECLARE_MESSAGE_MAP() private: enum { IDD = IDD_DIALOG_TEMPLATE }; protected: /// ¸®¼Ò½º cSkinDialogResource* mResource; /// ¿µ¿ª CRect mRect; /// Å©±â int mWidth; int mHeight; /// ¸Þ¸ð¸® DC CDC mMemDC; /// ºñÆ®¸Ê CBitmap* mOldBitmap; /// ÆùÆ® CFont mFont; };