CMFCTabCtrl's Active tab close button - mfc-feature-pack

In CMFCTabCtrl there is a function EnableActiveTabCloseButton() to have or not close button on any active tab.
I don't want to have close button only in my first tab. Th e other tab will have close button.
How to achieve it?
Thanks.

My question was answered in this link
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a6fe3ec1-0b8c-49f5-b499-84044226f1d8/cmfctabctrls-active-tab-close-button?forum=vcgeneral#a6fe3ec1-0b8c-49f5-b499-84044226f1d8
with these comments "maybe you can put EnableActiveTabCloseButton in OnActivate of the tab Control. Then you decide if it's the "first" tab, you don't EnableActiveTabCloseButton, if the active is not the "first" tab, then set EnableActiveTabCloseButton.".
This suggestion resolved my problem.

Related

There is no auto completion when editing in the text input box of debug console,

When inputting code the text input box of the debug console, There is completions options, but after clicking enter on keyboard, it will not be completed automatically. You need to manually click the completion item with the left mouse button to complete it.So could some optimization be made here. Thank You!
enter image description here
enter image description here
Use the tab key to accept what is highlighted in the intellsense drop down in the console.
You can also use the up and down arrow keys to scan through the list.
Hopefully that will keep you from having to switch to mouse. :)

Zoom one tab or all tabs

I am looking for a way to zoom only one tab.
When I press Ctrl++ to zoom my Firefox tab, all other tabs are also changed, creating a problem.
I have checked all the menu setting and nothing is available for this setting, at least not from the menu.
In Firefox address bar type: about:config
Press the box "I accept the risk" (or similar button)
In the Search Box type: zoom.siteSpecific
If you want Zoom to only effect one tab then set False under Value.
If you want Zoom to effect all tabs then set True under Value
You can change the value by double-clicking the line or right-click and select Toggle.
Note: You can restore zoom by selecting CTRL+0 (zero) or on the menu select View --> Zoom --> Reset.

Firebug / inspect element on hide menu

I want to find an element in FireFox 13. The problem is that I can't right click on my element. This is due to the fact that my element is a hide menu, which open on left click, and close on right click.
There is any other option to do that?
You can click "Inspect Element" from Firebug instead the right-click menu.
In "Script" panel, you can also enable Break-On-Next (pause button) which will pause the debugger on the next JavaScript statement execution (i.e. on the event listener for click in your situation). You can also enable this with a keyboard shortcut Alt+Ctrl+B.
Another solution is opening the console tab and writing
setTimeout(() => {debugger}, 5000)
This will trigger the debugger after 5 seconds. So as soon as u enter this command click on the menu and wait for the debugger to start and freeze your menu in place.
If 5 seconds is too little, increase the number 5000 as u see fit.

How to disable clicking parent menu item without disabling it?

I want to disable some of parent top menu links with sub-menus, so that when I click at the root top nothing should happen until I navigate and click to its sub menus for specific action.
For example, In Cocoa, if I have menu File -> Recent -> "...Recent files list...." , I can press "Recent". I want to prevent pressing "Recent". Can I do it?
Thanks!
The solution is call [menuItem SetAction : 0] for the item having Sub Menus.
In this way you will not be able to select this item.

How to add "Last Position" button to my tool bar in VB6 IDE

I did this before but can't remember how the heck I did it.
I want to have a button on my vb6 IDE toolbar that takes me back to the previous place I was in the code (in my "history) -- an incredibly useful feature.
I have it in my properties (right-click) menu but don't see it in the other menus from which I could drag it to the Toolbar.
Any ideas?
This should do it:
In the IDE right click an empty spot on your
menu and select Customize...
Select the Command tab in the Customize dialog
Select View from the Categories list.
On the Commands list you should see
an item called Last Position.
Drag this item to a toolbar.
#Jay's answer is right on. There are also handy shortcut keys for this feature and the related Definition feature:
Last Position: Ctl + Shift + F2
Definition: Shift + F2
In one of the toolbars in the sample applications?

Resources