i have derived the view class from the CHtmlView class and used the LoadFromResource() to load the html page into the view.
Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked on the html page.
-------) stop the mouse selection for the html content.
-------) stop the mouse cursor change over the static text.
All these problems are solved by adding some code in the html page inside the tag.
There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."
Now there were quite a few things that i wanted to stop for ex: -------) stop the context menu to be displayed when mouse is right clicked on the html page. [...]
All these problems are solved by adding some code in the html page inside the tag.</blockquote>
If you are trying to handle it via a right-click handler, you will need a better solution! These are quite easy to get around (dispite many web pages that try to prevent the menu in that way). Better to implement the host interface(s) and override the methods used in generating and showing the context menu.
<blockquote class="FQ"><div class="FQA">dp_76 wrote:</div>Now there were quite a few There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."</blockquote>
I do not think you can get around that one via script. Have you tried using PreTranslateMessage to intercept the <CODE>WM_MOUSEWHELL</CODE> messages if the Control key is down?
-=- James<HR><SMALL><FONT COLOR=DarkRed>If you think it costs a lot to do it <B>right</B>, just wait until you find out how much it costs to do it <B><I>wrong</I></B>!</FONT><BR>Avoid driving a vehicle taller than you and remember that <B><I>Professional Driver on Closed Course</I></B> does not mean <B><I>your Dumb Ass on a Public Road</B></I>!<BR><A HREF=http://www.deletefxpfiles.com>DeleteFXPFiles</A> & <A HREF=http://www.checkfavorites.com>CheckFavorites</A></SMALL> (Please rate this post!)
Well, everybody knows that program works with files very slow, so when i worked with windows API functions and MFC i just download whole file in the memory, and using the class CMemFile worked with it as with the stream.
Now i want to work with files using iostream classes (ifstream). But i don't know how to do the same.
Does any body know the way?
I have created a service with SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS attributes. This service will send some messages to a GUI application window via the Windows FindWindow() function. The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)". However, on Windows 2000 and 2003, the GUI application manages to get the messages when the service was run as a program from the command prompt. I need to have the service working on Windows 2000 and 2003 as well. What is the root cause and is there any workaround for this? Thanks.
. The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)".
Some time if any windows get HUNG... and you try to find it handle, this may result in similiar error
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
I am creating a new ActiveX from an existing ActiveX. I just creted class id using GUIDGen.exe and compile the project. But the new control is not downloading to machine where the old control present.
Do we need to change the class name of ActiveX too?
How to chnage the class name? There are many existence of class name in the project? Please advise..
Within a tab control, I am creating a window that has multiple windows embeded in it. The trouble is that I have never figured out how to set bounds on a given window so that it only takes up a piece of the window it is embedded in. I have tried using a frame, but I could not get it to work. If I could just see the code of a sample application where within a given window there were multiple windows inside it, where the bounds of the internal windows were set at compile time, I think I would know how to immitate it.
Thanks for your consideration in this matter.
I guess the better question to ask is how to calculate what the coordinates should be. It is nice when you can build it as a resource in the resource editor, but you can't do that with dialogs contained inside a tab control. Is there a better way than 'guess and check'?
Hi, I want to fire all the Html element events taking place in "Internet Explorer" in my VC++ application Use the following code fragment to obtain an event handler
spSelectElement->QueryInterface( IID_IHTMLSelectElement,(void **) pselectelement);
//Retrieves a pointer to the event handler function associated with the
//onchange event on the SELECT element, but i can't get it
VARIANT * p=NULL;
pselectelement->QueryInterface( DIID_HTMLSelectElementEvents,(void **) &pselectelementevent);
//get_onevent function can be found in msdn but can't seek in headfile MSHTML.H
((IHTMLElement*)pselectelement)->get_onEvent( &_variant_t(pDisp) );
// fire event
0x3e9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
help me ! sos