How to remove "new window from here" menu item (MMC 3.0) - menu

Currently I'm developing an MMC 3.0 based application. How I'm able to hide\remove the menu item "New window from here" which appears when you right click on any node in the left=hand pane (this is implemented to the Microsoft Event Viewer)?
Thanks in advance

Right click on the msc file and then click Author.
There go to File > Options. In the combo box select: "User mode - limited access, single window"
close the console and save the changes.
Run the MSC file and now the "New window from here" won't be there any more.
dig.

Related

Adding the "Send to" option to the immediate context menu in Windows 11

I would like to add the "send to" option to the context menu in Windows 11.
I know this option appears in the "more options" menu, but I want it to appear immediately on right-click.
I don't want to return my context menu to the Windows 10 menu, but add this option to the quick menu.
I tried this app but I couldn't figure out how to do it.

Menu doesn't expand in Drupal 7

I have a primary link created and set of links whose parent is the primary link.
I have enabled "Show as expanded" to all of them (tried with first primary also) but yet the sub-menus don't appear in the screen.
How do I resolve it?
I have went through Structure -> Menus -> Main Menu and list links.
Then, I have clicked edit on the About Me link.
I had this problem too! It took a while but I found the answer: Using the admin menu, go to Appearance / Settings and uncheck "Main Menu" and "Secondary Menu" in the "Toggle Display" section. Then click "Save Configuration."

How to open Bluetooth "Edit Serial Ports" on OSX with Applescript?

I am trying to write an applescript on OSX 7 that simply opens the "Edit Serial Ports" option in the Bluetooth Preferences Menu (I only have one paired device). I was able to get all the way to the bluetooth preferences pane, but I am stuck on how to tell applescript to select the appropriate option from the drop down menu. Would anyone be able to help me with this?
The applescript so far:
tell application "System Preferences"
activate
end tell
tell application "System Preferences"
activate
set current pane to pane "com.apple.preferences.Bluetooth"
end tell
Thank you so much for sharing your knowledge and expertise!
I was able to answer my own question, and learned a lot about applescript and xcode in the process. The correct script is as follows:
tell application "System Preferences"
set current pane to pane id "com.apple.preferences.bluetooth"
tell application "System Events"
tell process "System Preferences"
click menu button "Perform tasks with the selected device" of splitter group 1 of group 1 of window "Bluetooth"
delay 1 -- give menu time to pop up
click menu item "Edit Serial Ports…" of menu 1 of menu button "Perform tasks with the selected device" of splitter group 1 of group 1 of window "Bluetooth"
delay 5
end tell
end tell
quit
end tell

how can i add mouse down event on picture control in vc++

i want indentify all mouse click event like WM_LBUTTONDOWN and WM_LBUTTONUP, on picture control in vc++,
but i am not able to do this
please tell me how can i identifies all events separately.
thanks in advance.
You should enable property "Notify" of PictureControl to get the event.
You can add an event handler to the picture control using Visual Studio IDE and modify the code for handler function. That should be easy.
I'm guessing you're using MFC. In that case you have to add an activex control to your dialog.
i. Adding the control: To add such a control to your dialog box right click your dialog box and click the option called "Insert ActiveX Control". A modal dialog box appears. You have to select "Microsoft Forms 2.0 Image". Click OK. Control is added.
ii. Select an image: Right click your newly added control and select "Properties". Select your desired image clicking the picture attribute. Also there are other properties to customize the picture i.e, stretching, clipping image etc. You'll see your image is loaded into the control.
iii. Adding the handler function: Right click the control and select "Add Event handler". From the new modal dialog box select "MouseDown" or "MouseUp" as message type and click "add and edit". Add your code to achieve desired behavior.
N.B: MFC is not available with Visual C Express. You need a professional version of VS to compile MFC code.

CMenu and Dialog-based applications

Is it possible to put a menu in a dialog based application? How?
Yes, it is possible to add menu to the dialog based applications. You can create the menu as a resource and attach the same to the dialog.
If you open the properties for dialog, you can see a Menu as a property for which you can assign an existing Menu ID.
Steps:
Right click on Resource View and
insert a new Menu. (Menu with some ID-- lets say IDR_MENU1 -- is created)
Configure the menu to add required
items in menu and provide the ID,
Caption to the menu items.
Right click on Dialog and open
Properties...
From Menu Combobox, select the ID of
the required menu ( here IDR_MENU1)
You can add a menu resource to a dialog application, but you haven't said which version of Visual Studio you're using so details are hard to provide. You should know that because CDialog isn't derived from CFrameWnd, update routing won't work - you need to read this article for the details.
That article includes instruction for adding the menu if you're using a version of Visual Studio post-VC6, which you probably are - read the "more information" section further down the article for that.
See DLGCBR32 MFC sample in the MSDN.

Resources