Hello. I am much helped by your source. Could you ask for yours? I want to disable image bar, but i don't know the way. Please tell me the way. Whenever i watch your source, i am impressed. Have a nice day.
However, I do not understand your question. Could you please explain. Also, what is the image bar you are talking about ?
ReplyHi, Can this be done for WinCE-PocketPC 2003? I tried to develop a dll for PocketPC 2003. I deployed it on Pocket PC 2003 SE emulator. The new extension when invoked will show a "selected text in IE" in a messagebox. When I set DelayLoad=0, the context menu extension is not seen at all. When I set DelayLoad=1, I am able to see the new extension but when the new extension is invoked, nothing happens. Can you please let me know how to go about it? What all interfaces are needed to be implemented? What all settings are required if any keeping in mind the limitations of WinCE? Also, can you please explain why the extended menu is not shown when DelayLoad=0? I am using MSVC 2005. Thanks, Abhijit
I don't know anything about pocket PC IE context menu customization, however, as I see it, you have to implement IContextMenu methods. Now, question is: 1. HAve you registered your COM class on the pocket PC device /emulator ? If it is, you should see an entry in HKEY_CLASSES_ROOT\CLSID\{your class ID}\inProcServer32 2. Also, this same clsid is to appear on the HKCR\progID\shellex\ContextMenuHandlers\{CLSID} also. 3. If all that is in place, have you put some messageboxes in each of the methods of IContextMenu that you implement to see if they are called at all ?
ReplyHi Kiran, Sorry about not getting my thoughts across. Here's what I am doing - "I want an item 'MyClass' to be added to existing context menu of Pocket Internet Explorer(PIE). So when you keep the stylus pressed in the pocket internet explorer window, you will have an effect of right click and have the context menu appeared (cut,copy,Select all text etc...). Now, my aim is to add to the existing menu my own 'MyClass' item to achieve some functionality(For eg.. show some dialog box when my menu is invoked)." For above mentioned functionality, I am building an ATL DLL with a class implementing IContextMenu interface. Deploying it with the help of MSVC 2005 on PocketPC2003 SE emulator. When Pocket internet Explorer is relaunched, the new menu item(MyClass) should appear along with eixsting items(cut, copy ...etc). Now, when I say I see the extension, I mean that the new item is seen in the context menu of PIE. My ultimate aim is to capture the "selected" text in PIE window and upon invoking the 'MyClass' context menu item, a dialog box should popup showing the text I have selected. I hope I have put across all my thoughts about what exactly I am doing/ want to do. -- AbhijitReply
Hi Abhijit, am not sure what you are looking for. Are you looking to have a browser helper object for Pocket PC 2003 ? If so, I do not know if the same works, because I have not really studied if it is the same on Pocket PC 2003 ( or any WinCe flavor for that matter ). When you say, you can see the extension, what do you mean ? Is there any indication that the extension is loaded. Unless I know what exactly you are doing , I cannot answer as to what interfaces etc. needs to be supported and I guess it would be out of the scope of this article , so you may be better off posting in the forums. Sorry about that.Reply
This has tow disadvantages: 1. prevents other programs from showing their own custom menu items 2. disables to process other context menu items Standard way is to use IE Extensions Refer to http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/button.asp
First off, thank you very much for providing your input. I would like to address these issues and so would appreciate some more info from you. My comments below: 1. About issue 1. I don't understand what you mean by it prevents other context menu items. Could you give an example , so I could try it out at my end ? 2. Issue 2 is probably a bug that I have already reported ( if you look at the article comments, I have filed a bug report already. Only haven't updated article sources with the fix ). Please let me know if you are talking about something else. 3. About the link you have sent, isn't it for toolbar buttons. My article is for customising context menu. I don't know how that can replace what my article does. Aren't they both entirely different user experience ?
ReplyFound a bug with default context menu commands not working for anything other than the "Add to codeguru favorites" in the attached compiled binary. Will provide a fix in the next update.
Reply