WM_QUERYENDSESSION is not working in IE8 activeX control - delphi

I have a ActiveX control written in Delphi 6 which handles WM_QUERYENDSESSION message to pop up a message box to let users to save changes before shutting down windows.
It works fine in IE6 / IE7 , but in IE8 the ActiveX control cannot receive WM_QUERYENDSESSION , how to solve this?
thanks

Related

Delphi TWebbrowser , google wants to update browser

i had to change code of an older Delphi application in D2007. I required a login screen that was online (with Auth0) , in wich i could read the state of the result and according to that do some license handling.
The problem is, that whenever i try to login with Google Social account , it results in an information screen that wants me to update my browser.
The app is a Win32 app , running on Win32 and Win64 devices. I had tried to work with this solution :
How to have Delphi TWebbrowser component running in IE9 mode?
But any DWORD value i give to my exe , it just doesn't help me get rid of the notification.
I've been looking to use TChromium instead of TWebBrowser, but it seems buggy to me.
Are there any other ways to deal with this issue? Thanx
If you use DWORD values mentioned in the linked topic then TWebBrowser would be working in IE9 emulation mode. And since IE9 is considered as being old various sites will advise you to update your browser.
So what you need is to make sure that TWebBrowser in your app is running in IE11 emulation mode instead.
Based on information found here:
https://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
you should use DWORD value of 00011000 instead for full IE11 emulation.

delphi xe8 + twebbrowser : how to use Jquery inside to communicate?

My goal is to create a delphi XE8 project (VCL or fireMonkey) that will interact with webbrowser.
I want to use the power of JS (jquery) to access DOM, extract some data and send them back to delphi.
I try to use twebbrowser and... any page gives me tons of JS errors : I think twebbroser is based on a very old browser such as Internet explorer8
I run windows7 + IE11
1) Should I go to chromium browser ? (Tchromoium or chromiumembedded ?)
2) How to make it communicate with Jquery ?
Regards

Delphi7 - TWebBrowser does not load web, IE or Chrome correct

Using Delphi 7 on Win7, all updates.
The TWebBrowser component (or TEmbeddedWebBrowser) does not load http://www.sreality.cz correctly. Until recently, everything was ok. I think it happened after deploying multilingual websites. However, in IE or Chrome, everything is ok.
Setting Internet Feature Controls was unsuccessful.
Do you know the answer?

Resize of ATL Activex control hosted in Internet Explorer

We have an ATL Activex control, which is hosted in Internet Explorer. We wanted to re-size the ATL activex control along with the IE browser. Handled the WM_SIZE as below:
MESSAGE_HANDLER(WM_SIZE, OnSize)
which has written the OnSize handler for the respective class. But, the WM_SIZE even is not getting fired.
We have created the ATL activex in IE as below:
OBJECT classid="clsid:89431EB0-39AC-4544-A0AA-69247BA16B04" id="ISRControl" height="100%" width="100%"
Please, let me know if you have any suggetions. So, that it would be helpul for us.
Thank You
Yes finally I got the solution.
actually In my ATL Activex control I have already handled the WM_WINDOWPOSCHANGED event. so WM_SIZE event is not post to control if it has the WM_WINDOWPOSCHANGED. WM_WINDOWPOSCHANGED handler will get the new size co-ordinates.so I Called the MoveWindow of the control. so it automatically fires the WM_SIZE.

TWebBrowser Cannot Open Blogspot Website

I'm using Delphi XE2 in Windows 7 64 bit, I put TWebBrowser component in a Form. I navigate it to a blogspot website, e.g:
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
it shows JavaScript Error (HTML Parsing Error), then I turn Silent properties to True as follow:
Webbrowser1.Silent := true;
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
But the browser cannot open the page properly (only show background image). I tried other blogspot websites and got same problem. Any solution to display blogspot website correctly in TWebBrowser?
Twebbrowser uses IEFRAME
IEFRAME depends on the version of internet explorer you are running on that computer
You can deploy IEFRAME.DLL (in c:windows/system32 )with your application so you can be sure the same version is used everywhere so you wont get inconsistencies between computers.
However newer ones wont work on XP and there are some directx requirements.
A good alternative is
Delphi Embed chromium, it makes your deployed application a lot bigger (+-15MB) but you can be very sure it works everywhere and always (windows 8 to XP) and it will always produce the same page
Also if you have to manipulate the DOM or insert javascript (to communicate with the page)
this will be easier and will work more consistently.
Here is a link for the latest version:
https://code.google.com/p/dcef3/

Resources