Message 1 of 3
VC++ Custom Browser Pane creation

Not applicable
11-08-2004
04:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In VC++, trying to create a custom browser pane with browser nodes.
CreateBrowserNodeDefinition is passed the address of an
ClientBrowserNodeDefinitionObject object:
HRESULT BrowserPanes::CreateBrowserNodeDefinition ( ... struct ClientBrowserNodeDefinitionObject * * _presult )
AddTreeBrowserPane is passed the address of a BrowserNodeDefinition object:
HRESULT BrowserPanes::AddTreeBrowserPane ( ... struct BrowserNodeDefinition * TopNodeDefinition, struct BrowserPaneObject * * _presult )
If I try to pass the ClientBrowserNodeDefinitionObject pointer obtained in the first function to the second function where it wants the BrowserNodeDefinition pointer, it won't compile because these are differenct objects. However the VB example in the help file for creating a custom browser pane just uses the BrowserNodeDefinition obj and works fine.
I don't think I can cast one to the other.
Has anyone done a custom browser pane in VC++ and if
so how did you do it? Any help appreciated.
CreateBrowserNodeDefinition is passed the address of an
ClientBrowserNodeDefinitionObject object:
HRESULT BrowserPanes::CreateBrowserNodeDefinition ( ... struct ClientBrowserNodeDefinitionObject * * _presult )
AddTreeBrowserPane is passed the address of a BrowserNodeDefinition object:
HRESULT BrowserPanes::AddTreeBrowserPane ( ... struct BrowserNodeDefinition * TopNodeDefinition, struct BrowserPaneObject * * _presult )
If I try to pass the ClientBrowserNodeDefinitionObject pointer obtained in the first function to the second function where it wants the BrowserNodeDefinition pointer, it won't compile because these are differenct objects. However the VB example in the help file for creating a custom browser pane just uses the BrowserNodeDefinition obj and works fine.
I don't think I can cast one to the other.
Has anyone done a custom browser pane in VC++ and if
so how did you do it? Any help appreciated.