Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 MFC COM
Hi
I have a class in which i have implemented IDispatch interface for IHTMLWindow2.
For catching window resize method.Now invoke is getting called,but still i am not able to trace that event in DISPID_WINDOWRESIZE. How can i catch IE window resize event.
Thanks in advance.
Posted 15-Dec-12 5:30am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

JQuery has a built-in method for this:
 
$(window).resize(function () { /* do something */ });
For the sake of UI responsiveness, you might consider using a setTimeout to call your code only after some number of milliseconds, as shown in the following example, inspired by this:
 
function doSomething() {
    alert("I'm done resizing for the moment");
};
 
var resizeTimer;
$(window).resize(function() {
    clearTimeout(resizeTimer);
    resizeTimer = setTimeout(doSomething, 100);
});

Also check them:

http://stackoverflow.com/questions/1852751/window-resize-event-firing-in-internet-explorer[^]

http://mbccs.blogspot.in/2007/11/fixing-window-resize-event-in-ie.html[^]

http://remysharp.com/2008/05/15/windowonresize-hangs-ie6-and-ie7/[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,554
1 OriginalGriff 6,258
2 Peter Leow 2,534
3 Maciej Los 2,308
4 Abhinav S 2,274


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 15 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100