Visual Studio can set a breakpoint, or set up a hook, or whatever else, in order to intercept a click on button

How in Visual Studio can we set a breakpoint, or set up a hook, or whatever else, in order to intercept a click on button in dockable window pane built/run upon win32 API to be able to debugging?

F9. You can just use this.