Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VC6 MFC COM
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 4:30am

1 solution

Rate this: bad
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() {
    resizeTimer = setTimeout(doSomething, 100);
Also check them:[^][^][^]

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

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