昨天在研究mobile上掛機(jī)的時(shí)侯,發(fā)現(xiàn)了這么一個(gè)消息。不過這個(gè)消息與掛機(jī)沒有什么關(guān)聯(lián)。只是在其他界面遮蓋對(duì)話框的時(shí)候會(huì)產(chǎn)生這個(gè)消息。
下面我們來看一下這個(gè)消息的介紹,摘自SDK。
WM_CANCELMODE
功能描述:
This message is sent to the focus window when a dialog box or message box is displayed; this enables the focus window to cancel modes, such as stylus capture.
返回值:
An application should return zero if it processes this message.
這里還有一些相關(guān)的信息:
摘自:
http://support.microsoft.com/kb/74548/en-us/In the Microsoft Windows graphical environment, the WM_CANCELMODE message informs a window that it should cancel any internal state. This message is sent to the window with the focus when a dialog box or a message box is displayed, giving the window the opportunity to cancel states such as mouse capture.
When a control has the focus, it receives a WM_CANCELMODE message when the EnableWindow function disables the control or when a dialog box or a message box is displayed. When a control receives this message, it should cancel modes, such as mouse capture, and delete any timers it has created. A control must cancel these modes because an application may use a notification from the control to display a dialog box or a message box.
The DefWindowProc function processes WM_CANCELMODE by calling the ReleaseCapture function, which cancels the mouse capture for whatever window has the capture. The DefWindowProc function does not cancel any other modes.
原來想嘗試一下別的窗口遮蓋住對(duì)話框后做一些操作,這個(gè)消息似乎是一遮蓋就發(fā)出了,不起作用。原來我把這個(gè)消息想得太好了。
呼呼,不用了
posted on 2009-06-16 16:23
Sandy 閱讀(1912)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
Windows Mobile