|
Each tool in Control Panel is represented by a .cpl file in the Windows\System32 folder. The .cpl files in the Windows\System32 folder are loaded automatically when you start Control Panel.
I don't know any direct API to control that, one way is to locate the correspnding CPL file and rename it to some other extension or move to another folder to hide from control panel.
You can use MoveFile API to rename a file. please see a sample snippet for renaming files[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Thnx for the reply!! I will try to do that way. Can you tell me how to remove a particular menu item from the Start menu?
|
|
|
|
|
In Windows XP, the "Programs" list of start menu is created from two locations.
1. (HOME)\Documents and Settings\All Users\Start Menu\Programs
2. (HOME)\Documents and Settings\_current_user_\Start Menu\Programs
You can check these locations and delete unnecessary items.
Other start menu policies can be configured using registry or gpedit.msc tool.
See the details: Policy settings for the Start menu in Windows XP
[^]
Before doing all these. confirm you're damn sure of doing these things. Because registry edit and deleting start menu items may hard to restore back. So think twice and make sure no-damage to your/cilent's computer
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
I tried doing so but renaming didn't work. I am working on Windows Vista. I think windows vista doesn't allow to rename or move folders from control panel. Any suggestions?
|
|
|
|
|
You need to have administrator privilage to do so (you're trying to modify Windows system directory and files). Run the program as administrator. If UAC need to be prompted to run under elevated privilage, modify Manifest options from Project->Properties as "requireAdministrator"
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Hi,
I have created a dockable pane in my childframe with a tree control.When I run my application, the dockable pane is nicely created, but the problem is - the splitter of it is not seen until I once click the autohide pane. I am unable to understand the problem.I have posted this problem long back in the same forum, but couldn't get the answer. Please some one let me know as how to intially display the dockable pane with the splitter . I am using the new MFC feature pack,vc9.
Thanks in advance.
Taruni
|
|
|
|
|
I have placed a ComboBox in my ribbon bar. I added an Event Handler but i can't get it to work. When I want to place a URL in the ComboBox i want it to Navigate to the URL in my MFC CHtmlView Program. Any Sugestions on what the event handler should be or what i Should Do
|
|
|
|
|
You'll need to tell the HTML view to Navigate to that URL when it's selected in the combo-box.
Sub-class CMFCRibbonComboBox and override the OnSelectItem method - that's called when the user selects something in the combo-box.
|
|
|
|
|
Hi All
How can i copy Folder complete data to Folder?I have a source folder A which have 10 files and 2 folder.My destination folder B.I want to copy folder A to B.Plz help me
|
|
|
|
|
Hi,
Try using FindFirstFile and FindNextFile to enumerate all files in Folder A, then use CopyFile to copy each found file to Folder B.
(You can use CreateDirectory to create Folder B if it doesn't exist).
|
|
|
|
|
Thanks for reply
can you give me some example?
Plz help me
|
|
|
|
|
Try "Search Messages" for FindFirstFile in this site. There were quite a few examples.
|
|
|
|
|
There is an API called SHFileOperation using which this is possible.
«_Superman_»
|
|
|
|
|
Please read your this post[^] you already know the solution..
I hope it helps..
Regards,
Sandip.
|
|
|
|
|
Please provide the code with full steps.
|
|
|
|
|
Yes sir,
but the problem is you didn't send me the SRS for your application and multilingual application does not specify the complete needs.
BTW, how much are you ready to pay for it?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Actually, I want a sample application so that I can get some help about how to create a multilingual application. I need elaborated solution in steps. Plz help me.
Thank You
|
|
|
|
|
See here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
There is nothing that can help me. Plz provide other solutions.
|
|
|
|
|
you went through all the pages the query returned, and didn't find anything.
Strange.
I believe you can get more help by posting specific questions
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Purish Dwivedi wrote: There is nothing that can help me.
Yeah, right
Purish Dwivedi wrote: Plz provide other solutions.
I guess by solution you mean people doing the job for you ? Then, this is not the right place to ask. Go to www.rentacoder and pay somebody to do the job for you.
|
|
|
|
|
Did you look at Localization[^] section of CP??
I hope it helps..
Regards,
Sandip.
|
|
|
|
|
Hi....
I have a small problem.I have a managed dll developed to execute a simple dialog using VC++ 2005.When i load this dll in my system, it works perfectly fine.But when i share this dll in my system and launch this dll on another remote machine in network, the dialog fails to launch.Is it a problem with managed code or do i have to give some settings in my VC++ project.Please do let me know.I just don't get what the problem is?Please do help me out....
Thnx in advance..
|
|
|
|
|
Hi,
I want to start a certain process called nvcplui.exe within my application. That process is the Nvidia Control Panel process. To do so I use the CreateProcess function. Here is my short code:
if( !CreateProcess( NULL,
"C:\\Windows\\System32\\nvcplui.exe",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&processinfo )
)
{
printf( "CreateProcess failed (%d)\n", GetLastError() );
return;
}
As you might guess that doesn't work for me. If I use another application instead, let's say notepad (just replacing nvcplui.exe with notepad.exe), the code just works fine.
These are my investigations so far:
- Using GetLastError delivers: "Create Process failed (2)". That, as far as I know, means file not found. But the file is there for sure.
- Starting the process via command line manually (not via code) just works fine. No additional account privileges needed (was one of my first thoughts, but doesn't seem to be the case).
- As already said starting another program using the above method seems to work just fine.
- Using .net Process Class works fine with nvcplui.exe:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "C:\\windows\\system32\\nvcplui.exe";
process.Start();
Important notes: I'm running windows vista 64bit and unfortunately can't test the whole thing on a 32bit system, because I have none with an nvidia graphics card (for the nvidia control panel) available. I'm using UAC, but as stated above, this shouldn't be the problem.
I'm grateful for any hints. Thanks in advance.
|
|
|
|
|
You haven't mentioned if you're running your program with elevated privileges.
I'm guessing no.
So try running your executable as an administrator.
«_Superman_»
|
|
|
|