精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>编程开发>>C/C++>>技术精解:内存、进程、线程等>>To wokao -- Clipboard Messages

主题:To wokao -- Clipboard Messages
发信人: crazyjava()
整理人: wenbobo(2002-12-06 22:56:22), 站内信件
The following is all of clipboard messages based on Window API.
If u use BCB, it is sure that each msg is mapped to each form 
function.
eg. WM_DRAWCLIPBOARD is mapped to TForm1::OnDrawClipboard 
    as heman mentioned earlier.

(data sources come from MSDN, edited by crazyjava)
WM_ASKCBFORMATNAME
  it is sent to the clipboard owner by a clipboard viewer window 
  to request the name of a CF_OWNERDISPLAY clipboard format. 

WM_CHANGECBCHAIN
  it is sent to the first window in the clipboard viewer chain 
  when a window is being removed from the chain. 

WM_CLEAR
  An application sends a WM_CLEAR message to an edit control or 
  combo box to delete (clear) the current selection, if any, 
  from the edit control. 

WM_COPY   
  An application sends the WM_COPY message to an edit control or 
  combo box to copy the current selection to the clipboard in 
  CF_TEXT format. 

WM_CUT   
  An application sends a WM_CUT message to an edit control or 
  combo box to delete (cut) the current selection, if any, in 
  the edit control and copy the deleted text to the clipboard 
  in CF_TEXT format

WM_DESTROYCLIPBOARD
  it is sent to the clipboard owner when a call to the 
  EmptyClipboard function empties the clipboard 

WM_DRAWCLIPBOARD
  it is sent to the first window in the clipboard viewer chain 
  when the content of the clipboard changes. This enables a 
  clipboard viewer window to display the new content of the 
  clipboard. 

WM_HSCROLLCLIPBOARD
  it is sent to the clipboard owner by a clipboard viewer window. 
  This occurs when the clipboard contains data in the 
  CF_OWNERDISPLAY format and an event occurs in the clipboard 
  viewer's horizontal scroll bar. The owner should scroll the 
  clipboard image and update the scroll bar values. 

WM_PAINTCLIPBOARD
  it is sent to the clipboard owner by a clipboard viewer window 
  when the clipboard contains data in the CF_OWNERDISPLAY format 
  and the clipboard viewer's client area needs repainting   

WM_PASTE   
  An application sends a WM_PASTE message to an edit control or 
  combo box to copy the current content of the clipboard to the 
  edit control at the current caret position. Data is inserted 
  only if the clipboard contains data in CF_TEXT format. 

WM_RENDERALLFORMATS
  it is sent to the clipboard owner before it is destroyed, if 
  the clipboard owner has delayed rendering one or more clipboard 
  formats. For the content of the clipboard to remain available 
  to other applications, the clipboard owner must render data in 
  all the formats it is capable of generating, and place the data 
  on the clipboard by calling the SetClipboardData function.    

WM_RENDERFORMAT   
  it is sent to the clipboard owner if it has delayed rendering
  a specific clipboard format and if an application has requested 
  data in that format. The clipboard owner must render data in the 
  specified format and place it on the clipboard by calling the 
  SetClipboardData function.

WM_SIZECLIPBOARD
  it is sent to the clipboard owner by a clipboard viewer window 
  when the clipboard contains data in the CF_OWNERDISPLAY format 
  and the clipboard viewer's client area has changed size. 

WM_VSCROLLCLIPBOARD
  it is sent to the clipboard owner by a clipboard viewer window
  when the clipboard contains data in the CF_OWNERDISPLAY format
  and an event occurs in the clipboard viewer's vertical scroll 
  bar. The owner should scroll the clipboard image and update the 
  scroll bar values. 


--
孤身走我路...
其实,路,两个人一起走比一个人要好。
email: [email protected]

※ 修改:.crazyjava 于 Apr 30 03:54:06 修改本文.[FROM: 139.87.93.196]
※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 139.87.93.196]

[关闭][返回]