|
| STipCtrl (void) |
| 构造函数
|
|
virtual | ~STipCtrl (void) |
| 析构函数
|
|
BOOL | Create () |
| 创建提示控件
|
|
BOOL | PreTranslateMessage (MSG *pMsg) OVERRIDE |
| 预翻译消息
|
|
void | UpdateTip (const TIPID *id, RECT rc, LPCTSTR pszTip, int nScale) OVERRIDE |
| 更新提示信息
|
|
void | ClearTip () OVERRIDE |
| 清除提示信息
|
|
void | RelayEvent (const MSG *pMsg) OVERRIDE |
| 传递事件
|
|
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip, int nScale) OVERRIDE |
| 设置提示信息
|
|
BOOL | PreTranslateMessage (MSG *pMsg) PURE |
| Pre-translates messages for the tooltip.
|
|
void | UpdateTip (const TIPID *id, RECT rc, LPCTSTR pszTip, int nScale) PURE |
| Updates the current tooltip.
|
|
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip, int nScale) PURE |
| Displays the tooltip at a specified position.
|
|
void | ClearTip () PURE |
| Clears the current tooltip.
|
|
void | RelayEvent (const MSG *pMsg) PURE |
| Relays mouse messages to the tooltip.
|
|
int | GetID () SCONST |
| Retrieves the window ID.
|
|
void | SetID (int nID) |
| Sets the window ID.
|
|
HWND | CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID=0, LPVOID lpParam=0) OVERRIDE |
| Creates a native window.
|
|
HWND | GetHwnd () OVERRIDE |
| Retrieves the handle to the window.
|
|
BOOL | SubclassWindow (HWND hWnd) OVERRIDE |
| Subclasses an existing window.
|
|
HWND | UnsubclassWindow (BOOL bForce=FALSE) OVERRIDE |
| Unsubclasses a window.
|
|
const MSG * | GetCurrentMessage () SCONST OVERRIDE |
| Retrieves the current message being processed.
|
|
int | GetDlgCtrlID () SCONST OVERRIDE |
| Retrieves the dialog control ID.
|
|
DWORD | GetStyle () SCONST OVERRIDE |
| Retrieves the window style.
|
|
DWORD | GetExStyle () SCONST OVERRIDE |
| Retrieves the extended window style.
|
|
LONG_PTR | GetWindowLongPtr (int nIndex) SCONST OVERRIDE |
| Retrieves the long pointer value at the specified index.
|
|
LONG_PTR | SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) OVERRIDE |
| Sets the long pointer value at the specified index.
|
|
HWND | GetParent () OVERRIDE |
| Retrieves the handle to the parent window.
|
|
HWND | SetParent (HWND hWndNewParent) OVERRIDE |
| Sets the handle to the parent window.
|
|
BOOL | IsWindowEnabled () SCONST OVERRIDE |
| Checks if the window is enabled.
|
|
BOOL | ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE |
| Modifies the window style.
|
|
BOOL | ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE |
| Modifies the extended window style.
|
|
BOOL | SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) OVERRIDE |
| Sets the window position.
|
|
BOOL | CenterWindow (HWND hWndCenter=0) OVERRIDE |
| Centers the window relative to another window.
|
|
BOOL | DestroyWindow () OVERRIDE |
| Destroys the window.
|
|
BOOL | IsWindow () SCONST OVERRIDE |
| Checks if the handle is a valid window handle.
|
|
BOOL | Invalidate (BOOL bErase=TRUE) OVERRIDE |
| Invalidates the entire window.
|
|
BOOL | InvalidateRect (LPCRECT lpRect, BOOL bErase=TRUE) OVERRIDE |
| Invalidates a specified rectangle of the window.
|
|
BOOL | GetWindowRect (LPRECT lpRect) SCONST OVERRIDE |
| Retrieves the window rectangle.
|
|
BOOL | GetClientRect (LPRECT lpRect) SCONST OVERRIDE |
| Retrieves the client rectangle.
|
|
BOOL | ClientToScreen (LPPOINT lpPoint) SCONST OVERRIDE |
| Converts client coordinates to screen coordinates.
|
|
BOOL | ClientToScreen2 (LPRECT lpRect) SCONST OVERRIDE |
| Converts client rectangle coordinates to screen coordinates.
|
|
BOOL | ScreenToClient (LPPOINT lpPoint) SCONST OVERRIDE |
| Converts screen coordinates to client coordinates.
|
|
BOOL | ScreenToClient2 (LPRECT lpRect) SCONST OVERRIDE |
| Converts screen rectangle coordinates to client coordinates.
|
|
int | MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST OVERRIDE |
| Maps points from one window to another.
|
|
int | MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST OVERRIDE |
| Maps a rectangle from one window to another.
|
|
UINT_PTR | SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL) OVERRIDE |
| Sets a timer for the window.
|
|
BOOL | KillTimer (UINT_PTR nIDEvent) OVERRIDE |
| Kills a timer for the window.
|
|
HDC | GetDC () OVERRIDE |
| Retrieves a device context for the window.
|
|
HDC | GetWindowDC () OVERRIDE |
| Retrieves a device context for the entire window.
|
|
int | ReleaseDC (HDC hDC) OVERRIDE |
| Releases a device context.
|
|
BOOL | CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) OVERRIDE |
| Creates a caret for the window.
|
|
BOOL | HideCaret () OVERRIDE |
| Hides the caret.
|
|
BOOL | ShowCaret () OVERRIDE |
| Shows the caret.
|
|
HWND | GetCapture () OVERRIDE |
| Retrieves the handle to the window that has captured the mouse.
|
|
HWND | SetCapture () OVERRIDE |
| Sets the window to capture the mouse.
|
|
BOOL | ReleaseCapture () OVERRIDE |
| Releases the mouse capture.
|
|
HWND | SetFocus () OVERRIDE |
| Sets the input focus to the window.
|
|
LRESULT | SendMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE |
| Sends a message to the window.
|
|
BOOL | PostMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE |
| Posts a message to the window.
|
|
BOOL | SendNotifyMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE |
| Sends a notify message to the window.
|
|
BOOL | SetWindowText (LPCTSTR lpszString) OVERRIDE |
| Sets the window text.
|
|
int | GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST OVERRIDE |
| Retrieves the window text.
|
|
BOOL | IsIconic () SCONST OVERRIDE |
| Checks if the window is iconic (minimized).
|
|
BOOL | IsZoomed () SCONST OVERRIDE |
| Checks if the window is zoomed (maximized).
|
|
BOOL | IsWindowVisible () SCONST OVERRIDE |
| Checks if the window is visible.
|
|
BOOL | MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE) OVERRIDE |
| Moves the window to the specified position and resizes it.
|
|
BOOL | MoveWindow2 (LPCRECT lpRect, BOOL bRepaint=TRUE) OVERRIDE |
| Moves the window to the specified position and resizes it using a rectangle.
|
|
BOOL | ShowWindow (int nCmdShow) OVERRIDE |
| Sets the show state of the window.
|
|
int | SetWindowRgn (HRGN hRgn, BOOL bRedraw=TRUE) OVERRIDE |
| Sets the window region.
|
|
BOOL | SetLayeredWindowAttributes (COLORREF crKey, BYTE bAlpha, DWORD dwFlags) OVERRIDE |
| Sets the layered window attributes.
|
|
BOOL | UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags) OVERRIDE |
| Updates the layered window.
|
|
void | SetMsgHandler (FunMsgHandler fun, void *ctx) OVERRIDE |
| Sets the message handler for the window.
|
|
MsgHandlerInfo * | GetMsgHandler () OVERRIDE |
| Retrieves the message handler for the window.
|
|
LRESULT | DefWindowProc () |
| Calls the default window procedure.
|
|
LRESULT | ForwardNotifications (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
| Forwards notifications to the appropriate handler.
|
|
LRESULT | ReflectNotifications (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
| Reflects notifications to the appropriate handler.
|
|
virtual BOOL | ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult, DWORD dwMsgMapID=0) |
| Processes a window message.
|
|
| TObjRefImpl () |
| Constructor that initializes the reference count to 1.
|
|
virtual | ~TObjRefImpl () |
| Virtual destructor.
|
|
long | AddRef () override |
| Increments the reference count.
|
|
long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero.
|
|
void | OnFinalRelease () override |
| Deletes the object.
|
|
long | AddRef () PURE |
| Increases the reference count.
|
|
long | Release () PURE |
| Decreases the reference count.
|
|
void | OnFinalRelease () PURE |
| Called when the reference count reaches zero and the object is about to be released.
|
|