list of PIDLs More...
#include <shellclasses.h>
Public Member Functions | |
PIDList () | |
~PIDList () | |
HRESULT | GetData (IDataObject *selection) |
operator LPIDA () | |
Protected Attributes | |
STGMEDIUM | _stgm |
LPIDA | _pIDList |
list of PIDLs
Definition at line 1057 of file shellclasses.h.
PIDList::PIDList | ( | ) | [inline] |
Definition at line 1059 of file shellclasses.h.
References _stgm.
{ memset(&_stgm, 0, sizeof(STGMEDIUM)); }
PIDList::~PIDList | ( | ) | [inline] |
HRESULT PIDList::GetData | ( | IDataObject * | selection ) | [inline] |
Definition at line 1072 of file shellclasses.h.
References _pIDList, and _stgm.
Referenced by DesktopShellView::DoContextMenu(), and IShellBrowserImpl::OnDefaultCommand().
{ static UINT CF_IDLIST = RegisterClipboardFormat(CFSTR_SHELLIDLIST); FORMATETC fetc; fetc.cfFormat = CF_IDLIST; fetc.ptd = NULL; fetc.dwAspect = DVASPECT_CONTENT; fetc.lindex = -1; fetc.tymed = TYMED_HGLOBAL; HRESULT hr = selection->QueryGetData(&fetc); if (FAILED(hr)) return hr; hr = selection->GetData(&fetc, &_stgm); if (FAILED(hr)) return hr; _pIDList = (LPIDA)GlobalLock(_stgm.hGlobal); return hr; }
PIDList::operator LPIDA | ( | ) | [inline] |
LPIDA PIDList::_pIDList [protected] |
Definition at line 1100 of file shellclasses.h.
Referenced by GetData(), and operator LPIDA().
STGMEDIUM PIDList::_stgm [protected] |
Definition at line 1099 of file shellclasses.h.
Referenced by GetData(), PIDList(), and ~PIDList().
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |