I'd like to ask about "SHChangeNotifyRegister". If anyone knows, please tell me. My PC environment is Windows XP SP1 and VC++ SP5 with including the latest MS SDK files. I read below three articles: http://www.codeproject.com/shell/shchangenotifyregister.asp[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shchangenotifyregister.asp[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shchangenotify.asp[^] The problem is the event ID "SHCNE_CREATE". For example, creating ".txt" file. When I right-click and select "New" -> "text document"("text file"?) on the desktop, "SHCNE_CREATE" can be caught. However, when I execute "Notepad.exe" and save file on the desktop, "SHCNE_CREATE" can't be caught. I appoint parameters of "SHChangeNotifyRegister" function is below: second parameter:0x0001 | 0x0002 third parameter:SHCNE_ALLEVENTS I'd like to know below two points: (1)Whether the upper problem is the specification? (2)How to catch "SHCNE_CREATE" when creating file from "save file" in menu of application.
Na_Su
Posts
-
About "SHChangeNotifyRegister" -
How to edit or operate Windows registryI see... Then is the way to solve something special or dangerous? As the lack of information, now I'm really at a loss...:sigh: I'd like to know the way by all means!
-
How to edit or operate Windows registryTo tell the truth... I don't know which key/value in registry to modify. Then I've been looking into various information, but I can't find! As the result, the way is not registry modification but another one. Then do you know the www link(s) or any tip(s) to solve?
-
How to edit or operate Windows registryHello. I'd like to ask about how to edit or operate Windows registry. This question might be related to Windows Shell Programming... Who knows how to delete item(s) from context(pop up) menu when right-clicked in explorer? The way is not by using ".EnableWindow(FALSE)" but by editing or operating of Windows registry. I don't know in which path(place) of registry and what editing or operating of registry key(s) or value(s). Concretly, the items I'd like to delete are "print", "cut" and "copy". After editing registry and reboot, this result is effective whole Windows System. Finally, I'd like to make ".dll" file which upper things are able. Please tell me if anyone knows.
-
How to be unable to select item(s) in menu when right-clicked>wisecrack: Thank you for answering. By the way, after posting message I looked into more information. And I found that "CMenu:CEnableMenuItem" may be right. My goal is to develop MFC project of dialog base. For example, here is a goal that when right-clicked over the icon of text file in Explorer, the item "cut" is glay. The below is the method. I created new MFC project of dialog base. (The project name is "Click".) And I added below code of "OnRButtonDown" with Class Wizard into "CClickDlg.cpp" file: === void CClickDlg::OnRButtonDown(UINT nFlags, CPoint point) { // TODO: CMenu *hMenu; CWnd* cwParent = GetParent(); DWORD dwStyle = cwParent->GetStyle(); hMenu = cwParent->GetSystemMenu(FALSE); hMenu -> EnableMenuItem(ID_EDIT_CUT, MF_GRAYED); CDialog::OnRButtonDown(nFlags, point); } === And including "afxres.h" in the first of "CClickDlg.cpp" file, I built "Click.exe" file. With "Click.exe" executing, I executed "explorer.exe" and I clicked right button over a certain text file. But the item "cut" wasn't glay. Which point of my method is wrong? If there is another good idea or programming flow, please tell me.
-
How to be unable to select item(s) in menu when right-clickedHello, everyone. I'd like to develop ".exe" file by using VC++ 6 SP5 with Windows XP SP1. The content is that during executing this program, when right-click is done over the icon of file or folder in Explorer, the user can't select item(s) of popup menu(context menu). This "can't select" means that item(s) such as "open" or "edit" etc, is/are disapeeared completely. Or the name of item is appeared with gray and unable to select. I read topics in "Shell Programming", but I could't find helpful topic about above method.:sigh: Is it some experienced in development? Or are someone known method? If knows, and helpful www link(s) also exist(s), I'm glad. Please tell me.