windows_programming_notes.nbk: Home | Index | Next Page: WM_CANCELJOURNAL | Previous Page: WM_ACTIVATEAPP
The WM_ASKCBFORMATNAME message is sent to the clipboard owner by a clipboard viewer window to request the name of a CF_OWNERDISPLAY clipboard format.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_ASKCBFORMATNAME WPARAM wParam, // size of buffer LPARAM lParam // format name (LPTSTR) );
If an application processes this message, it should return zero.
In response to this message, the clipboard owner should copy the name of the owner-display format to the specified buffer, not exceeding the buffer size specified by the wParam parameter.
A clipboard viewer window sends this message to the clipboard owner to determine the name of the CF_OWNERDISPLAY format — for example, to initialize a menu listing available formats.
windows_programming_notes.nbk: Home | Index | Next Page: WM_CANCELJOURNAL | Previous Page: WM_ACTIVATEAPP
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time