|
|
|
You might try to disable it via a service.
On a side note, disabling a key is a very strange requirement: Are you sure it is the solution to your problem ?
|
|
|
|
|
You might try to disable it via a service.
via service? why should I need a service. And if at all, how can I do that?
On a side note, disabling a key is a very strange requirement: Are you sure it is the solution to your problem ?
Yes.
|
|
|
|
|
Hi,
I am designing a small utility to scan hard drive for specific file types.
But I am facing strange problem in it.
A dialog box is scanning the drive, When I press "Cancel" button to stop the process, it opens window dialog box to ask for shutdown the windows.
But I am just doing CDialog::OnOk() on button click;
This is happening with windows7 only, on XP it is running fine.
Please guide.
|
|
|
|
|
john5632 wrote: Please guide.
Please show the code path taken when you press "Cancel".
|
|
|
|
|
if(MessageBox(_T("Do you want to cancel recovery?"),_T("Information"),MB_YESNO|MB_ICONQUESTION)==IDYES)
{
g_bStopScanning=TRUE;
CDialog::OnOK();
}
|
|
|
|
|
There must be more to this than meets the eye. I suggest you track this through your debugger.
|
|
|
|
|
I don't see how this could cause the problem you described, but shouldn't you be calling CDialog::OnCancel() ?
|
|
|
|
|
Is the scanning going on in a secondary thread?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Hi,
I have property sheet with PSH_HASHELP button.
But how to create handler of this button?
|
|
|
|
|
Add a function to the class to handle the help button click - void OnPropertyBtnHelp(void);
Then add the following to the message map - ON_COMMAND(IDHELP, OnPropertyBtnHelp)
To handle the F1 key press create a handler for WM_HELPINFO .
|
|
|
|
|
I have read the MSDN document section about Journal Hook over and over again, still be confused with the following things.
1.Does the Journal Record Hook record the user actions( like mouse clicks or keyboard events ), then Journal Playback Hook replays the series of actions which the user has just performed?
2.The lParam of the JournalRecordProc is a pointer to a EVENTMSG, I can copy it to a buffer as the MSDN tells us to, but what are we supposed to do with these EVENTMSG buffer?
3.The lParam of the JournalPlaybackProc is also a pointer to a EVENTMSG, I think this EVENTMSG is one of the actions which the user has just performed, what should we do with it in order to replay the action?
|
|
|
|
|
During Journal Record, you need to make copies of the EVENTMSG structures passed in lParam .
You can do this by creating a vector or EVENTMSG structures - std::vector<EVENTMSG> vEventMsgs;
Whenever the journal hook callback is called you can use std::vector::push_back to make copies of this structure.
During playback, copy back the stored EVENTMSG structures to lParam .
The return value from the journal playback callback must be the amount of time to wait till the next journal playback callback is called.
You can calculate this from the time member of the EVENTMSG structure.
Take a look at this article to find out how its done - Writing a Macro Recorder/Player using Win32 Journal Hooks[^]
|
|
|
|
|
The subject is not necessarily related to C/C++/MFC, simply I didn't find a suitable section.
How can be changed the boot logo of Vista ? It's possible, some applications available on the net can do it. I'm interrested in writing my own application. Code in any language is welcome. If not code, then it would be great to get some information related to the subject (links, registry entries, files, shell functions, etc).
Thanks.
|
|
|
|
|
Easy[^] when you know how (to Google).
|
|
|
|
|
Thanks for the Google link, I never heard about this site. Is it a search engine ?
To turn serious, if you don't know the answer, you don't have to reply.
Ok, I repeat, maybe it helps: "I'm interrested in writing my own application".
|
|
|
|
|
Well I guess not bothering to try Google first was a reasonable indication that you did not bother to read this[^] either, particularly points 1 and 2.
CString(0xcccccccc) wrote: if you don't know the answer, you don't have to reply.
I was merely giving you some suggestions; but don't expect anyone here to give you a working solution for the asking. After all you did say you were interested in writing your own.
|
|
|
|
|
1. Your assumption that I didn't searched the net before comming here is wrong. In fact I came here after exausting all other options (Google, Bing, Microsoft, MSDN, etc).
2. Your assumption that I'm asking for a complete application is also wrong. I asked for ANY kind of usefull information. I stated that in my first message. I did it using simple and clear sentences, easy to understand.
3. Although you posted so far two messages there is not any useful information in them, just sarcasm, wrong asumptions and patronizing. Is that the help the owner of the site wants to be provided ? Providing me a link to Google is pure sarcasm. Or maybe you assumed that I never heard about Google and the link will help me ?
4. To me it appears that you didn't read the link you give me about the rules of the forum. You were sarcastic about my question stated in the most civilized way. If you start using sarcasm, don't wonder if I return your "amability".
5. With such a "help" I don't find this forum very appealing. I request the intervention of a moderator.
6. To the other users of the forum: please reply only if you can provide some useful information.
|
|
|
|
|
CString(0xcccccccc) wrote: 1. Your assumption that I didn't searched the net before comming here is wrong.
You did not mention that you had tried it in your first message.
CString(0xcccccccc) wrote: 2. Your assumption that I'm asking for a complete application is also wrong.
This is what you asked for: Code in any language is welcome. If not code, then it would be great to get some information related to the subject (links, registry entries, files, shell functions, etc)., and that's what I offered you - links.
CString(0xcccccccc) wrote: 3. Although you posted so far two messages there is not any useful information in them, just sarcasm, wrong asumptions and patronizing.
That merely reflects your attitude, not mine. I gave you some links, posted in good faith in the hope that you would find something useful in them.
CString(0xcccccccc) wrote: 4. You were sarcastic about my question stated in the most civilized way.
On the contrary, I provided you with some useful information, there was no sarcasm in my response.
|
|
|
|
|
CString(0xcccccccc) wrote: 3. Although you posted so far two messages there is not any useful information in them, just sarcasm, wrong asumptions and patronizing. Is that the help the owner of the site wants to be provided ? Providing me a link to Google is pure sarcasm.
I realize you've only been here a wee bit, but if you decide to stay, you will quickly find a plethora of sarcastic posters. Richard, however, is not one of them. His responses are indeed genuine and usually spot on.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Thanks for your words of support.
|
|
|
|
|
CString(0xcccccccc) wrote: Ok, I repeat, maybe it helps: "I'm interrested in writing my own application".
And you also said, "If not code, then it would be great to get some information related to the subject (links, registry entries, files, shell functions, etc)" which is what Richard addressed.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
It's just a shame that Google is more accessible than useful reading and comprehension skills.
|
|
|
|
|
LogonStudio is a free program that allows users to change their Windows 7, Vista and XP logon screens. It comes with several logon screens to choose from, along with thousands that are available online from Web sites such as WinCustomize.com.
Hope this helps.
John Nawrocki
Chief Technical Advisor
Custom Molded Products
|
|
|
|