-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from cinience/dev
Merge dev to master
- Loading branch information
Showing
71 changed files
with
6,014 additions
and
5,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
#pragma once | ||
|
||
class AbstraceUI : public CContainerUI, public CNotifyPump | ||
{ | ||
public: | ||
AbstraceUI(CPaintManagerUI* pm):m_hWnd(NULL),m_pPaintManager(pm){}; | ||
|
||
virtual ~AbstraceUI(){}; | ||
|
||
virtual void Initialize() {}; | ||
|
||
virtual CDuiString GetVirtualwndName() = 0; | ||
|
||
virtual void RefreshWnd() = 0; | ||
|
||
virtual int GetIndex() = 0; | ||
|
||
virtual bool CanChange() | ||
{ | ||
return true; | ||
} | ||
|
||
virtual LRESULT HandleCustomMessage( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled ) | ||
{ | ||
bHandled = FALSE; | ||
return 0; | ||
} | ||
|
||
// ÉèÖô°¿Ú¾ä±ú | ||
inline void SetHWND(HWND hwnd) | ||
{ | ||
m_hWnd = hwnd; | ||
} | ||
|
||
inline HWND GetHWND() | ||
{ | ||
return m_hWnd; | ||
} | ||
|
||
inline CPaintManagerUI* GetPaintMgr() | ||
{ | ||
return m_pPaintManager; | ||
} | ||
private: | ||
CPaintManagerUI* m_pPaintManager; | ||
HWND m_hWnd; | ||
#pragma once | ||
|
||
class AbstraceUI : public CContainerUI, public CNotifyPump | ||
{ | ||
public: | ||
AbstraceUI(CPaintManagerUI* pm):m_hWnd(NULL),m_pPaintManager(pm){}; | ||
|
||
virtual ~AbstraceUI(){}; | ||
|
||
virtual void Initialize() {}; | ||
|
||
virtual CDuiString GetVirtualwndName() = 0; | ||
|
||
virtual void RefreshWnd() = 0; | ||
|
||
virtual int GetIndex() = 0; | ||
|
||
virtual bool CanChange() | ||
{ | ||
return true; | ||
} | ||
|
||
virtual LRESULT HandleCustomMessage( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled ) | ||
{ | ||
bHandled = FALSE; | ||
return 0; | ||
} | ||
|
||
/// 设置窗口句柄 | ||
inline void SetHWND(HWND hwnd) | ||
{ | ||
m_hWnd = hwnd; | ||
} | ||
|
||
inline HWND GetHWND() | ||
{ | ||
return m_hWnd; | ||
} | ||
|
||
inline CPaintManagerUI* GetPaintMgr() | ||
{ | ||
return m_pPaintManager; | ||
} | ||
private: | ||
CPaintManagerUI* m_pPaintManager; | ||
HWND m_hWnd; | ||
}; |
Oops, something went wrong.