Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   CPicture -> Delphi? (https://www.delphipraxis.net/150911-cpicture-delphi.html)

Alter Mann 30. Apr 2010 06:45


CPicture -> Delphi?
 
Hallo

kennt jemand einen Ersatz für diese C-Klasse:
Code:
class CPicture : public COleDispatchDriver
{
   public:CPicture() {}      // Calls COleDispatchDriver default constructor
   CPicture(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
   CPicture(const CPicture& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

   // Attributes
   public:
   long GetHandle();
   long GetHPal();
   void SetHPal(long);
   short GetType();
   long GetWidth();
   long GetHeight();

   // Operations
   public:
   // method 'Render' not emitted because of invalid return type or parameter type
};
Der COleDispatchDriver ist in afxdisp.h deklariert.

Benötigt wird das ganze für eine Delphiumsetzung von einem "Ouside In" Beispiel.


Viele Grüße

Alter Mann

[edit=mkinzler]Code-Tag durch c-Tag ersetzt Mfg, mkinzler[/edit]

Bernhard Geyer 30. Apr 2010 07:31

Re: CPicture -> Delphi?
 
Zitat:

Zitat von Alter Mann
Benötigt wird das ganze für eine Delphiumsetzung von einem "Ouside In" Beispiel

Dort wird doch von einer OCX-Schnittstelle für Delphi gesprochen. Diese OCX/ActiveX kannst du in Delphi importieren und dann einfach verwenden.

Alter Mann 30. Apr 2010 09:46

Re: CPicture -> Delphi?
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hi,

rein Teoretisch ja.
In einem speziellen Fall soll eine Gallerieansicht entwickelt werden.
Zur Erstellung der Thumbnails mit den OCX-Control gibt es eine Demo 'drawpage' und die
verwendet dieses CPicture.
Alle anderen Möglichkeiten wie Zwischenablage, Screenshot usw. funktionieren leider nicht, warum auch immer.

Da das OCX-Control für die Entwicklung frei ist, habe ich die Demo mal angehängt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz