How to disable the system speaker control
-
hi, I used the following code to GRAY the "Mute all" check box,but it is not working.Is there any other method. HWND hwnd1=::FindWindow(NULL,"Volume Control"); HWND hwnd=::GetDlgItem(hwnd1,0x3e8); ::EnableWindow(hwnd,FALSE);
ashwath2005 wrote:
I used the following code to GRAY the "Mute all" check box,but it is not working.
Your code snippet worked fine for me.
ashwath2005 wrote:
Is there any other method.
No. What you have will work.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
ashwath2005 wrote:
I used the following code to GRAY the "Mute all" check box,but it is not working.
Your code snippet worked fine for me.
ashwath2005 wrote:
Is there any other method.
No. What you have will work.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
hi, I am using Windows XP machine.Which system are you using.May be it does not work on XP system.
-
hi, I am using Windows XP machine.Which system are you using.May be it does not work on XP system.
hi, It worked for me also ,but it works only when the "Volume Control" window is opened and then you execute the code snippet.What should happen is that even when the "Volume Control" window is closed and then you excute the code snippet,it should work.
-
hi, It worked for me also ,but it works only when the "Volume Control" window is opened and then you execute the code snippet.What should happen is that even when the "Volume Control" window is closed and then you excute the code snippet,it should work.
ashwath2005 wrote:
...but it works only when the "Volume Control" window is opened
Of course. What else would you expect? The Mute all checkbox does not exist otherwise.
ashwath2005 wrote:
What should happen is that even when the "Volume Control" window is closed and then you excute the code snippet,it should work.
Lots of luck to you. It's impossible to manipulate a window/control that does not exist.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
ashwath2005 wrote:
...but it works only when the "Volume Control" window is opened
Of course. What else would you expect? The Mute all checkbox does not exist otherwise.
ashwath2005 wrote:
What should happen is that even when the "Volume Control" window is closed and then you excute the code snippet,it should work.
Lots of luck to you. It's impossible to manipulate a window/control that does not exist.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
hi, ok then is there a way to GRAY the volume control icon in the task bar.
-
hi, ok then is there a way to GRAY the volume control icon in the task bar.
Why would you even consider doing this? Do you not think that the user would be somewhat annoyed that they could not change the volume on their computer? How friendly would that be?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
Why would you even consider doing this? Do you not think that the user would be somewhat annoyed that they could not change the volume on their computer? How friendly would that be?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
hi, There is such a requirement in my project.I should do it. Could you help please.
-
hi, There is such a requirement in my project.I should do it. Could you help please.
ashwath2005 wrote:
There is such a requirement in my project.
Just because it is a requirement does not make it a good idea. Please explain what you are doing and maybe we could could come up with an alternative solution that is more practical.
ashwath2005 wrote:
Could you help please.
I just made eight posts to this thread. Don't you think I would have helped if I could? Do you think that I am purposely withholding information?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
ashwath2005 wrote:
There is such a requirement in my project.
Just because it is a requirement does not make it a good idea. Please explain what you are doing and maybe we could could come up with an alternative solution that is more practical.
ashwath2005 wrote:
Could you help please.
I just made eight posts to this thread. Don't you think I would have helped if I could? Do you think that I am purposely withholding information?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
hi, In our project there is an option to Control the Volume of audio of the system,so when the user does control the volume through our software,he should not be allowed to go and change the volume through the system.
-
hi, In our project there is an option to Control the Volume of audio of the system,so when the user does control the volume through our software,he should not be allowed to go and change the volume through the system.
hi, Can i ask you a question.How did you get the id of the "Mute all" check box to be 0x3e8.
-
hi, Can i ask you a question.How did you get the id of the "Mute all" check box to be 0x3e8.
ashwath2005 wrote:
How did you get the id of the "Mute all" check box to be 0x3e8.
Spy++.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb