When I implemented IVsTextMarkerClient::GetMarkerCommandInfo Method
according to in instructions by Dr Ex
(http://blogs.msdn.com/dr._ex/archive/2004/06/09/152220.aspx), I noticed
the pbstrText and pcmdf passed in are all NULL. This prevents me from
providing my own context menu items. What can me wrong?
Thanks,
Michael
HRESULT GetMarkerCommandInfo (
IVsTextMarker *pMarker,
long iItem,
BSTR *pbstrText,
DWORD *pcmdf
);
Michael He - 02 Nov 2004 03:46 GMT
> When I implemented IVsTextMarkerClient::GetMarkerCommandInfo Method
> according to in instructions by Dr Ex
[quoted text clipped - 12 lines]
> DWORD *pcmdf
> );
Answer my own question...
GetMarkerCommandInfo is first called with pbstrText and pCommandFlags
set to NULL. Just return S_OK so the IDE knows that the client support
this command. Then the IDE will allocate memory for pbstrText and
pCommandFlags and call again.