Exposed by Windows Explorer and the Open File common dialog box to provide services for namespace extensions.
-
Updates a composite menu with container's options
-
Attaches a shared menu to a shell view window
-
Asks container to remove any items it added to a composite menu
-
Sets the status text in view's status bar
-
Enables or disables modeless dialogs
-
Translates keystrokes used as menu item activators
-
Navigates to a different location
-
Returns a stream that can be used to access view state information
-
Returns a handle to one of the browser's control elements
-
Sends a control msg to browser's toolbar or status bar
-
Returns the currently displayed view
-
Callback triggered when a view window is activated
-
Adds toolbar buttons to the browser's toolbar
PyIShellBrowser.BrowseObject
BrowseObject(pidl, wFlags) Navigates to a different location
-
pidl : PyIDL
Item id list that specifies the new browse location, can be None
-
wFlags : int
Combination of shellcon.SBSP_* flags
PyIShellBrowser.EnableModelessSB
EnableModelessSB(fEnable) Enables or disables modeless dialogs
-
fEnable : boolean
Use True to enable or False to disable modeless dialog boxes
PyIShellBrowser.GetControlWindow
GetControlWindow(id) Returns a handle to one of the browser's control elements
-
id : int
One of shellcon.FCW_* values
PyIShellBrowser.GetViewStateStream
PyIStream = GetViewStateStream(grfMode) Returns a stream that can be used to access view state information
-
grfMode : int
Read/write mode, one of STGM_READ,STGM_WRITE,STGM_READWRITE
PyIShellBrowser.InsertMenusSB
PyOLEMENUGROUPWIDTHS = InsertMenusSB(hmenuShared, lpMenuWidths
) Updates a composite menu with container's options
-
hmenuShared : PyHANDLE
Newly created menu that contains no items
-
lpMenuWidths : PyOLEMENUGROUPWIDTHS
Tuple of 6 ints. Items 0,2,and 4 are updated when the tuple is returned.
PyIShellBrowser.OnViewWindowActive
OnViewWindowActive(pshv) Callback triggered when a view window is activated
-
pshv : PyIShellView
The activated view object
PyIShellBrowser.QueryActiveShellView
PyIShellView = QueryActiveShellView() Returns the currently displayed view
PyIShellBrowser.RemoveMenusSB
RemoveMenusSB(hmenuShared) Asks container to remove any items it added to a composite menu
-
hmenuShared : PyHANDLE
Handle to the composite menu
PyIShellBrowser.SendControlMsg
int = SendControlMsg(id, uMsg
, wParam
, lParam
) Sends a control msg to browser's toolbar or status bar
-
id : int
shellcon.FCW_TOOLBAR or FCW_STATUS
-
uMsg : int
The message to send
-
wParam : int
Value is dependent on the message
-
lParam : long
Value is dependent on the message
PyIShellBrowser.SetMenuSB
SetMenuSB(hmenuShared, holemenuRes, hwndActiveObject) Attaches a shared menu to a shell view window
-
hmenuShared : PyHANDLE
Handle to the shared menu
-
holemenuRes : PyHANDLE
Reserved, use only None (or 0)
-
hwndActiveObject : PyHANDLE
Handle to the shell window
PyIShellBrowser.SetStatusTextSB
SetStatusTextSB(pszStatusText) Sets the status text in view's status bar
-
pszStatusText : str
New status to be displayed
PyIShellBrowser.SetToolbarItems
SetToolbarItems(lpButtons, uFlags) Adds toolbar buttons to the browser's toolbar
-
lpButtons : PyLPTBBUTTONSB
Sequence of tuples describing the buttons to be added
-
uFlags : int
Indicates button positions, combination of shellcon.FCT_*
PyIShellBrowser.TranslateAcceleratorSB
TranslateAcceleratorSB(pmsg, wID) Translates keystrokes used as menu item activators
-
pmsg : PyMSG
Keystroke message to be translated
-
wID : int
Menu command id for the keystroke