|
Depends on which scope it should have. If you need to disable the key only in your application, you could handle the WM_KEYDOWN message, there handling the keycode VK_DELETE.
If you'd like to disable the key for all applications, you should set a hook (SetWindowsHoolEx) of type WH_KEYBOARD.
|
|
|
|
|
Hi, does anyone knows how to programmatically delete the Find History ie the list of files that come up when you click on Start>Search>For Files or Folder>Search for files or folders named
Thanks in advance.
|
|
|
|
|
Apparently the history is written to HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5603 and/or
HKEY_CURRENT_USER\Software\Microsoft\Search Assistant\ACMru\5604 registry keys on my Windows XP machine. Wiping out the data in the sub-keys should do the trick.
Though, I'm not really sure if this is true for all configurations
|
|
|
|
|
Thanks Joshua.
I believe for Windows 98 the setting should be HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc
Find Spec MRU
I have observed for Windows 2000, the key is located at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Explorer\Explorer Bars\FilesNamedMRU
Is this correct?
Thanks in advance again
Effiniti->
|
|
|
|
|
i want to add a cdrom icon in the explorer (with no cd rom attached) and when the user access the cdrom probably my function say .. Read() is called which supplies explorer the contents of cdrom (which is not there )
it can probably be done with Shell Extentions but can someone shed more light on it
Symmetrical is Beautiful
IUnknown is Symmetrical
IUnknown is Beautiful
|
|
|
|
|
iam working in a project like yours
so please if you found any usefull thing that will help me in implementing the virtual cd please send me
|
|
|
|
|
i want to know how can you make an application which can monitor all the tcp Packets sent or recvd and which can log all the sites accessed by a pc
Symmetrical is Beautiful
IUnknown is Symmetrical
IUnknown is Beautiful
|
|
|
|
|
Use WinPcap. Or get Ethereal if you don't want to write everything by yourself.
|
|
|
|
|
Yup , i do need to write evrything by myself
Symmetrical is Beautiful
IUnknown is Symmetrical
IUnknown is Beautiful
|
|
|
|
|
|
I created a dialog box using the resource editor. I am wondering how to get the CWND from this so I can create controls during run time.
Thanks
The wisest of the wise may err. - Aeschylus
|
|
|
|
|
Do you use MFC?
If YES, the CDialog class what the Visual C++ Wizard created is derived from CWnd . So, you can use the a member of type CDialog on every place where you can use CWnd .
Sample:
<br />
CMyDialog dlg;<br />
dlg.DoModal();<br />
...<br />
dlg.SetWindowText(_T("Hi!"));<br />
...<br />
CWnd* pWnd = &dlg;<br />
...<br />
pWnd->SetWindowText(_T("Hi!"));<br />
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Nope, not using MFC, using the resource editor and the winapi.
The wisest of the wise may err. - Aeschylus
|
|
|
|
|
Oh... than take a look on what Rage wrote ...
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
You get the HWND of the dialog (not "CWND") as the first parameter to the dialog box function. Also, if the dialog is modeless, its HWND is the return value from CreateDialog() .
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
If you're running under WIn API, you'll have somewhere in your code a place where you create your main window. This is your CWnd. To add controls in your CDialog, just pass a *CDialog instead of a *CWnd, since CDialog is derived from CWnd (and this, not only in MFC).
Finally, if your main win is your dialog, you may pass NULL pointers to create the controls (see MSDN)
Hope this helps-
~RaGE();
|
|
|
|
|
Hi :
This must be easy for some ... but I am having trouble getting it to work.
My project is a dialog form, and it has only 1 button - IDC_BUTTON1.
The following are codes associated :
void CYDlg::OnButton1()
{
// TODO: Add your control notification handler code here
AfxMessageBox("Single Click") ;
}
void CYDlg::OnDoubleclickedButton1()
{
// TODO: Add your control notification handler code here
AfxMessageBox("DoubleClicked") ;
}
Clearly, if I click on the button or twice, it should show the appropriate messag. However, I am always only getting "Single Click" no matter how many clicks I try.
Am I missing something ?
TIA.
|
|
|
|
|
When you double-click something, it first receives a clicked message (for the first click) and then a double-clicked message (for the second). Since you show a message box on the first click, that disables the dialog (since the msg box is modal) making the button unable to receive the second click. Remove the message box from your OnButton1() handler and you'll see.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
You are right ! Thanks for the explanation.
|
|
|
|
|
Why would you want to double click on a button
Never seen that, done that or will do that.
regards,
Michel Wassink
We must make user friendly software. Where are friendly users?
|
|
|
|
|
Hi :
One never knows .... I am just exploring VC++.. and since the wizards show that it is doable .....
Here's a dumb question then. Follow up from previous mail ... what if I want to open dialog1 if user single click, and open dialog2 if user double click.
Does this mean this is not possible, or have to done in different way ?
Cheers.
|
|
|
|
|
Quek Khoo Boon wrote:
Does this mean this is not possible, or have to done in different way ?
Maybe it's possible, maybe not. I don't want to know.
Go to the next page of your book and start with more interesting things;P
Michel Wassink
We must make user friendly software. Where are friendly users?
|
|
|
|
|
hi,
can anyone help..I want to load bitmaps from hard drive into my application..any suggestions are welcome..
thanks in advance..
cheers
Himanshu
|
|
|
|
|
Call LoadImage() and use the LR_LOADFROMFILE flag. This will get you an HBITMAP which you can use with GDI functions.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hi,
I am developing a TAPI application to send and recv data. I was able established the connection between the application. Now I want to send and recv data between them. I'm using ReadFile() and WriteFile(). But when I try to set the comm state, it gives me an error. Some times it gives an error INVALID_HANDLE in Write file(). How to get the comm handle ? I have used the LPVARSTRING to get the handle. Is it correct? How to use the WriteFile() and ReadFile() function.
Pls help...
Vini
|
|
|
|