#include <MzWnd.h>
被CMzWndEx继承.
公有成员 | |
| void | AnimateWindow (UINT nAnimType, bool bShow) |
| Animate the window | |
| BOOL | Attach (HWND hWndNew) |
| attach an window handle with to a CMzWnd based object | |
| CMzWnd (void) | |
| constructor | |
| virtual BOOL | Create (int xPos, int yPos, int width, int height, HWND hwndParent=NULL, int uID=NULL, DWORD style=WS_CHILD, DWORD exstyle=0) |
| Create the window | |
| void | DestroyWindow () |
| Destroy the window | |
| HWND | Detach () |
| detach an window handle with to a CMzWnd based object | |
| void | Dock (DWORD dwFlags) |
| Dock the window | |
| virtual int | DoModal () |
| Pop up the window | |
| void | EndModal (int nRet) |
| End the modal window | |
| UINT | GetAnimateType_Hide () |
| get the Window Animation type when the window is hiding | |
| UINT | GetAnimateType_Show () |
| get the Window Animation type when the window is showing | |
| int | GetHeight (void) |
| get the height of the window | |
| HWND | GetParent (void) |
| get the parent window | |
| MZFC_INLINE int | GetShellHomekeyReturnValue () |
| get the return value when the window received the Shell Home key message | |
| int | GetWidth (void) |
| get the width of the window | |
| HBITMAP | GetWindowBitmap (__in const RECT *prcScreen) |
| get a part of the bitmap of the window, include its child windows. | |
| HBITMAP | GetWindowBitmap (void) |
| get the bitmap of the window, include its child windows. | |
| POINT | GetWindowPos () |
| get the window's position. | |
| int | GetWindowText (HWND hWnd, LPTSTR lpString, int nMaxCount) |
| get the window text, same as Win32 API | |
| CMzString | GetWindowText () |
| get the window text | |
| int | GetWindowTextLength () |
| get the window text's length | |
| BOOL | Invalidate (RECT *rcUpdate=NULL, BOOL bErase=FALSE) |
| invalidate a window. same as Win32 InvalidateRect() API | |
| bool | IsVisible () |
| whether visible | |
| virtual LRESULT | MzDefWndProc (UINT message, WPARAM wParam, LPARAM lParam) |
| RECT | MzGetClientRect (void) |
| get the window's client rect | |
| RECT | MzGetWindowRect (void) |
| get the window's rect | |
| virtual void | OnPaint (HDC hdc, LPPAINTSTRUCT ps) |
| called when received WM_PAINT | |
| virtual void | PaintWin (HDC hdc, RECT *prcUpdate=NULL) |
| called when the window needs paint or update. | |
| BOOL | PostCommandMessage (int nID, int nNotifyCode, LPARAM lParam) |
| Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND. | |
| BOOL | PostCommandMessage (LPARAM lParam) |
| Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND. | |
| BOOL | PostCommandMessage (void) |
| Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND. | |
| BOOL | PostMessage (UINT message, WPARAM wParam, LPARAM lParam) |
| Post message to the window | |
| void | ScrollWindow_So (RECT *prcDst, RECT *prcScroll, RECT *prcClipSrc, RECT *prcClipDst) |
| Scroll the window (with scroll-optimization, currently not available) | |
| LRESULT | SendMessage (UINT message, WPARAM wParam, LPARAM lParam) |
| Send message to the window | |
| void | SetAnimateType_Hide (UINT nAnimType) |
| set the Window Animation type when the window is hiding | |
| void | SetAnimateType_Show (UINT nAnimType) |
| set the Window Animation type when the window is showing | |
| void | SetBgColor (COLORREF crBg) |
| set the bg color | |
| void | SetDrawTextFormat (DWORD dwFormat) |
| set the DrawText format | |
| void | SetFontColor (COLORREF crFont) |
| set the font color | |
| void | SetFontSize (int nSize) |
| set the font size | |
| void | SetShellHomekeyReturnValue (int nValue) |
| set the return value when the window received the Shell Home key message | |
| BOOL | SetWindowPos (HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags=0) |
| set the window's position, same as the corresponding Win32 API: SetWindowPos() | |
| void | SetWindowText (LPCTSTR lpString) |
| set the window text | |
| void | Show (bool bShow=true, bool bBringTop=true) |
| Show or hide the window. | |
| BOOL | ShowWindow (int nCmdShow) |
| Show or hide the window, same as the Win32 ShowWindow() API | |
| BOOL | SubClassWindow (HWND hWnd) |
| Subclass the window handle | |
| HWND | UnSubClassWindow (void) |
| UnSubclass the window | |
| void | UpdateWindow () |
| update a window. same as Win32 UpdateWindow() API | |
| virtual void | zReserved1 (void *pv) |
| virtual void | zReserved2 (void *pv) |
| virtual void | zReserved3 (void *pv) |
| virtual void | zReserved4 (void *pv) |
| virtual void | zReserved5 (void *pv) |
| virtual void | zReserved6 (void *pv) |
| virtual void | zReserved7 (void *pv) |
| virtual void | zReserved8 (void *pv) |
| virtual | ~CMzWnd (void) |
| destructor | |
静态公有成员 | |
| static CMzWnd * | FromHandle (HWND hWnd) |
| get the CMzWnd object from the global MZFC Window Map | |
公有属性 | |
| HWND | m_hWnd |
| the window handle | |
| byte | m_zReserved [16] |
保护成员 | |
| virtual BOOL | MzRegisterClass () |
| register the window class | |
| virtual void | OnCommand (WORD wNotifyCode, WORD wID, HWND hwndCtl) |
| called when the window receives command message WM_COMMAND | |
| virtual BOOL | OnInitDialog (void) |
| called by MZFC when the window (dialog) is created and initializing | |
| virtual void | OnLButtonDblClk (UINT fwKeys, int xPos, int yPos) |
| called when the window is double click by mouse left button. | |
| virtual void | OnLButtonDown (UINT fwKeys, int xPos, int yPos) |
| called when the window is pressed down by mouse left button. | |
| virtual void | OnLButtonUp (UINT fwKeys, int xPos, int yPos) |
| called when the mouse left button is is released on the window | |
| virtual void | OnMouseMove (UINT fwKeys, int xPos, int yPos) |
| called when the window has mouse move message. | |
| virtual void | OnMzCommand (WPARAM wParam, LPARAM lParam) |
| called when the window receives MZFC's command message MZ_WM_COMMAND | |
| virtual void | OnSettingChange (DWORD wFlag, LPCTSTR pszSectionName) |
| called when received WM_SETTINGCHANGE | |
| virtual int | OnShellHomeKey (UINT message, WPARAM wParam, LPARAM lParam) |
| Call when SHELL HOME key is pressed | |
| virtual void | OnSize (int nWidth, int nHeight) |
| called when received WM_SIZE | |
| virtual void | OnTimer (UINT_PTR nIDEvent) |
| called when Timer arrived. | |
| virtual void | PreSubClassWindow (void) |
| override this member to do something before subclassing the window | |
保护属性 | |
| COLORREF | m_crBgColor |
| bg color of the window | |
| COLORREF | m_crFontColor |
| DWORD | m_dwDockFlags |
| window docking flags | |
| DWORD | m_dwDrawTextFormat |
| DrawText format,used by DrawText() | |
| int | m_nFontSize |
| WNDPROC | m_pfnSuper |
| CMzWnd::CMzWnd | ( | void | ) |
constructor
| virtual CMzWnd::~CMzWnd | ( | void | ) | [virtual] |
destructor
| void CMzWnd::AnimateWindow | ( | UINT | nAnimType, | |
| bool | bShow | |||
| ) |
| BOOL CMzWnd::Attach | ( | HWND | hWndNew | ) |
attach an window handle with to a CMzWnd based object
| virtual BOOL CMzWnd::Create | ( | int | xPos, | |
| int | yPos, | |||
| int | width, | |||
| int | height, | |||
| HWND | hwndParent = NULL, |
|||
| int | uID = NULL, |
|||
| DWORD | style = WS_CHILD, |
|||
| DWORD | exstyle = 0 | |||
| ) | [virtual] |
Create the window
| style | 0: create normal window; WS_CHILD: create child window; WS_POPUP:create modal window(dialog that will use DoModal() to popup) | |
| xPos | x coordinate of the window | |
| yPos | y coordinate of the window | |
| width | width of the window | |
| height | height of the window | |
| hwndParent | Parent window's handle | |
| uID | ID of the window | |
| style | Windows Styles of the window | |
| exstyle | Extended Windows Styles of the window |
| void CMzWnd::DestroyWindow | ( | ) |
Destroy the window
| HWND CMzWnd::Detach | ( | ) |
detach an window handle with to a CMzWnd based object
| void CMzWnd::Dock | ( | DWORD | dwFlags | ) |
Dock the window
| virtual int CMzWnd::DoModal | ( | ) | [virtual] |
Pop up the window
| void CMzWnd::EndModal | ( | int | nRet | ) |
End the modal window
| nRet | ID_CASCADE_EXIT, ID_OK, ID_CANCEL, value bigger than ID_CANCEL can use freely as needed. |
| static CMzWnd* CMzWnd::FromHandle | ( | HWND | hWnd | ) | [static] |
get the CMzWnd object from the global MZFC Window Map
| UINT CMzWnd::GetAnimateType_Hide | ( | ) |
get the Window Animation type when the window is hiding
| UINT CMzWnd::GetAnimateType_Show | ( | ) |
get the Window Animation type when the window is showing
| int CMzWnd::GetHeight | ( | void | ) |
| HWND CMzWnd::GetParent | ( | void | ) |
get the parent window
| MZFC_INLINE int CMzWnd::GetShellHomekeyReturnValue | ( | ) |
get the return value when the window received the Shell Home key message
| int CMzWnd::GetWidth | ( | void | ) |
get the width of the window
| HBITMAP CMzWnd::GetWindowBitmap | ( | __in const RECT * | prcScreen | ) |
get a part of the bitmap of the window, include its child windows.
| HBITMAP CMzWnd::GetWindowBitmap | ( | void | ) |
get the bitmap of the window, include its child windows.
| POINT CMzWnd::GetWindowPos | ( | ) |
get the window's position.
| int CMzWnd::GetWindowText | ( | HWND | hWnd, | |
| LPTSTR | lpString, | |||
| int | nMaxCount | |||
| ) |
get the window text, same as Win32 API
| CMzString CMzWnd::GetWindowText | ( | ) |
get the window text
| int CMzWnd::GetWindowTextLength | ( | ) |
get the window text's length
| BOOL CMzWnd::Invalidate | ( | RECT * | rcUpdate = NULL, |
|
| BOOL | bErase = FALSE | |||
| ) |
invalidate a window. same as Win32 InvalidateRect() API
| bool CMzWnd::IsVisible | ( | ) |
whether visible
| virtual LRESULT CMzWnd::MzDefWndProc | ( | UINT | message, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [virtual] |
the window's message processing function.
被CMzWndEx及CPopupMenu重载。
| RECT CMzWnd::MzGetClientRect | ( | void | ) |
get the window's client rect
| RECT CMzWnd::MzGetWindowRect | ( | void | ) |
get the window's rect
| virtual BOOL CMzWnd::MzRegisterClass | ( | ) | [protected, virtual] |
register the window class
| virtual void CMzWnd::OnCommand | ( | WORD | wNotifyCode, | |
| WORD | wID, | |||
| HWND | hwndCtl | |||
| ) | [protected, virtual] |
called when the window receives command message WM_COMMAND
| virtual BOOL CMzWnd::OnInitDialog | ( | void | ) | [protected, virtual] |
called by MZFC when the window (dialog) is created and initializing
| virtual void CMzWnd::OnLButtonDblClk | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
called when the window is double click by mouse left button.
| virtual void CMzWnd::OnLButtonDown | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
called when the window is pressed down by mouse left button.
| virtual void CMzWnd::OnLButtonUp | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
called when the mouse left button is is released on the window
| virtual void CMzWnd::OnMouseMove | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
called when the window has mouse move message.
| virtual void CMzWnd::OnMzCommand | ( | WPARAM | wParam, | |
| LPARAM | lParam | |||
| ) | [protected, virtual] |
called when the window receives MZFC's command message MZ_WM_COMMAND
override this member to process your UI's command
| virtual void CMzWnd::OnPaint | ( | HDC | hdc, | |
| LPPAINTSTRUCT | ps | |||
| ) | [virtual] |
called when received WM_PAINT
| virtual void CMzWnd::OnSettingChange | ( | DWORD | wFlag, | |
| LPCTSTR | pszSectionName | |||
| ) | [protected, virtual] |
| virtual int CMzWnd::OnShellHomeKey | ( | UINT | message, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [protected, virtual] |
Call when SHELL HOME key is pressed
| virtual void CMzWnd::OnSize | ( | int | nWidth, | |
| int | nHeight | |||
| ) | [protected, virtual] |
| virtual void CMzWnd::OnTimer | ( | UINT_PTR | nIDEvent | ) | [protected, virtual] |
called when Timer arrived.
| virtual void CMzWnd::PaintWin | ( | HDC | hdc, | |
| RECT * | prcUpdate = NULL | |||
| ) | [virtual] |
| BOOL CMzWnd::PostCommandMessage | ( | int | nID, | |
| int | nNotifyCode, | |||
| LPARAM | lParam | |||
| ) |
Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND.
| BOOL CMzWnd::PostCommandMessage | ( | LPARAM | lParam | ) |
Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND.
| BOOL CMzWnd::PostCommandMessage | ( | void | ) |
Post MZ_WM_COMMAND message to the window. See MZ_WM_COMMAND.
| BOOL CMzWnd::PostMessage | ( | UINT | message, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Post message to the window
| virtual void CMzWnd::PreSubClassWindow | ( | void | ) | [protected, virtual] |
override this member to do something before subclassing the window
| void CMzWnd::ScrollWindow_So | ( | RECT * | prcDst, | |
| RECT * | prcScroll, | |||
| RECT * | prcClipSrc, | |||
| RECT * | prcClipDst | |||
| ) |
Scroll the window (with scroll-optimization, currently not available)
| LRESULT CMzWnd::SendMessage | ( | UINT | message, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Send message to the window
| void CMzWnd::SetAnimateType_Hide | ( | UINT | nAnimType | ) |
set the Window Animation type when the window is hiding
| nAnimType | MZ_ANIMTYPE_NONE, MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_1, MZ_ANIMTYPE_ZOOM_OUT, etc. |
| void CMzWnd::SetAnimateType_Show | ( | UINT | nAnimType | ) |
set the Window Animation type when the window is showing
| nAnimType | MZ_ANIMTYPE_NONE, MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_2, MZ_ANIMTYPE_ZOOM_IN, etc. |
| void CMzWnd::SetBgColor | ( | COLORREF | crBg | ) |
set the bg color
| void CMzWnd::SetDrawTextFormat | ( | DWORD | dwFormat | ) |
set the DrawText format
| void CMzWnd::SetFontColor | ( | COLORREF | crFont | ) |
set the font color
| void CMzWnd::SetFontSize | ( | int | nSize | ) |
set the font size
| void CMzWnd::SetShellHomekeyReturnValue | ( | int | nValue | ) |
set the return value when the window received the Shell Home key message
| BOOL CMzWnd::SetWindowPos | ( | HWND | hWndInsertAfter, | |
| int | X, | |||
| int | Y, | |||
| int | cx, | |||
| int | cy, | |||
| UINT | uFlags = 0 | |||
| ) |
set the window's position, same as the corresponding Win32 API: SetWindowPos()
| hWndInsertAfter | insert after the specified window | |
| X | x coordinate | |
| Y | y coordinate | |
| cx | width | |
| cy | height | |
| uFlags | same as Win32 API SetWindowPos()'s param uFlags |
| void CMzWnd::SetWindowText | ( | LPCTSTR | lpString | ) |
set the window text
| void CMzWnd::Show | ( | bool | bShow = true, |
|
| bool | bBringTop = true | |||
| ) |
Show or hide the window.
| BOOL CMzWnd::ShowWindow | ( | int | nCmdShow | ) |
Show or hide the window, same as the Win32 ShowWindow() API
| BOOL CMzWnd::SubClassWindow | ( | HWND | hWnd | ) |
Subclass the window handle
| HWND CMzWnd::UnSubClassWindow | ( | void | ) |
UnSubclass the window
| void CMzWnd::UpdateWindow | ( | ) |
update a window. same as Win32 UpdateWindow() API
| virtual void CMzWnd::zReserved1 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved2 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved3 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved4 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved5 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved6 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved7 | ( | void * | pv | ) | [virtual] |
| virtual void CMzWnd::zReserved8 | ( | void * | pv | ) | [virtual] |
COLORREF CMzWnd::m_crBgColor [protected] |
bg color of the window
COLORREF CMzWnd::m_crFontColor [protected] |
DWORD CMzWnd::m_dwDockFlags [protected] |
window docking flags
DWORD CMzWnd::m_dwDrawTextFormat [protected] |
DrawText format,used by DrawText()
| HWND CMzWnd::m_hWnd |
the window handle
int CMzWnd::m_nFontSize [protected] |
WNDPROC CMzWnd::m_pfnSuper [protected] |
| byte CMzWnd::m_zReserved[16] |
被CMzWndEx重载。