mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 23:56:17 +02:00
win32: application should call OleInitialize to use some windows features like Clipboard, Drag and Drop, etc. Do this for LCL applications (maybe related to issue #0010409).
git-svn-id: trunk@18807 -
This commit is contained in:
parent
d37ad93cb0
commit
cdcb46fcd0
@ -34,7 +34,7 @@ interface
|
||||
successful compilation.
|
||||
}
|
||||
uses
|
||||
Windows, Classes, Translations, ComCtrls, Controls, Buttons, Dialogs,
|
||||
Windows, ActiveX, Classes, Translations, ComCtrls, Controls, Buttons, Dialogs,
|
||||
DynHashArray, ExtCtrls, Forms, GraphMath, GraphType, InterfaceBase, LCLIntf,
|
||||
LCLType, LMessages, StdCtrls, SysUtils, Win32Def, Graphics, Menus, CommCtrl,
|
||||
Themes, Win32Debug, Maps;
|
||||
|
@ -108,6 +108,7 @@ begin
|
||||
Exit;
|
||||
end;
|
||||
|
||||
OleInitialize(nil);
|
||||
//TODO: Remove when the WS interface is implemented
|
||||
// Common controls only need to be initialized when used
|
||||
// So they are initialized in the CreateHandle for common controls
|
||||
@ -417,6 +418,7 @@ end;
|
||||
procedure TWin32WidgetSet.AppTerminate;
|
||||
begin
|
||||
Assert(False, 'Trace:TWin32WidgetSet.AppTerminate - Start');
|
||||
OleUninitialize;
|
||||
end;
|
||||
|
||||
procedure TWin32WidgetSet.AppSetIcon(const Small, Big: HICON);
|
||||
|
Loading…
Reference in New Issue
Block a user