--- Feature Request --- Applies to: Classic Shell, Classic Explorer, Custom ToolBar Button --- Objective --- When a custom ToolBar button is clicked, I want to change the button ICON and the button Text. This is necessary to reflect the current state of the action that was performed. --- Example --- Change the button "Text". $Key = "HKEY_CURRENT_USER\Software\IvoSoft\ClassicExplorer" $ValueName = "ToolbarItems" $ValueType = "REG_MULTI_SZ" $Data = RegRead( $Key, $ValueName ) $Label1 = "TestButton.Label=OldText" $Label2 = "TestButton.Label=NewText" If StringInStr( $Data, $Label1 ) Then $Data = StringReplace( $Data, $Label1, $Label2 ) Else $Data = StringReplace( $Data, $Label2, $Label1 ) EndIf RegWrite( $Key, $ValueName, $ValueType, $Data ) The TestButton.Label does change, but I have to close the Windows Explorer then reopen it for the changes to be reflected. How do I force Classic Explorer to refresh the ToolBar (on-the-fly) under program control? Maybe I could call something in... C:\Program Files\Classic Shell\ClassicExplorer64.dll Thank You in advance.
|