Click here to Skip to main content
11,795,848 members (75,737 online)
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)

  Print Answers RSS
0 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web02 | 2.8.151002.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