Mercurial > dwindows
comparison win/dw.c @ 589:bb439280ece2
Escape out of _free_window_memory() if we are being called on an embedded
Internet Explorer browser instance.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 23 May 2005 07:54:10 +0000 |
parents | 420c6c94abc7 |
children | d3871f747160 |
comparison
equal
deleted
inserted
replaced
588:1b398af1ec38 | 589:bb439280ece2 |
---|---|
344 ColorInfo *thiscinfo = (ColorInfo *)GetWindowLongPtr(handle, GWLP_USERDATA); | 344 ColorInfo *thiscinfo = (ColorInfo *)GetWindowLongPtr(handle, GWLP_USERDATA); |
345 HFONT oldfont = (HFONT)SendMessage(handle, WM_GETFONT, 0, 0); | 345 HFONT oldfont = (HFONT)SendMessage(handle, WM_GETFONT, 0, 0); |
346 HICON oldicon = (HICON)SendMessage(handle, WM_GETICON, 0, 0); | 346 HICON oldicon = (HICON)SendMessage(handle, WM_GETICON, 0, 0); |
347 char tmpbuf[100]; | 347 char tmpbuf[100]; |
348 | 348 |
349 GetClassName(handle, tmpbuf, 99); | |
350 | |
351 /* Don't try to free memory from an OLE embedded IE */ | |
352 if(strncmp(tmpbuf, "Internet Explorer_Server", 25) == 0) | |
353 return TRUE; | |
354 | |
349 /* Delete font, icon and bitmap GDI objects in use */ | 355 /* Delete font, icon and bitmap GDI objects in use */ |
350 if(oldfont) | 356 if(oldfont) |
351 DeleteObject(oldfont); | 357 DeleteObject(oldfont); |
352 if(oldicon) | 358 if(oldicon) |
353 DeleteObject(oldicon); | 359 DeleteObject(oldicon); |
354 | |
355 GetClassName(handle, tmpbuf, 99); | |
356 | 360 |
357 if(strnicmp(tmpbuf, STATICCLASSNAME, strlen(STATICCLASSNAME)+1)==0) | 361 if(strnicmp(tmpbuf, STATICCLASSNAME, strlen(STATICCLASSNAME)+1)==0) |
358 { | 362 { |
359 HBITMAP oldbitmap = (HBITMAP)SendMessage(handle, STM_GETIMAGE, IMAGE_BITMAP, 0); | 363 HBITMAP oldbitmap = (HBITMAP)SendMessage(handle, STM_GETIMAGE, IMAGE_BITMAP, 0); |
360 | 364 |