Discussion:
Handle of image (hBitmap)
(too old to reply)
Marc VdB
2004-02-19 20:37:42 UTC
Permalink
Hi Ken,

i whish, that dbase could surface the handle of the image in the
image-class.
Similar to hwnd in other controls, there could be a property hBitmap for the
image-class.

Kind regards,

Marc Van den Berghen

--

------
www.vdblogic.de/dbl/homee.htm
------
Ken Mayer [dBASE, Inc.]
2004-02-19 22:07:09 UTC
Permalink
Post by Marc VdB
i whish, that dbase could surface the handle of the image in the
image-class.
Similar to hwnd in other controls, there could be a property hBitmap for the
image-class.
Is there a separate handle for the image besides that of the image
object itself? It seems to me that there wouldn't be ... I mean, why
would there be? The image object itself is the window object that has
the handle.

Ken
---
Ken Mayer [dBASE, Inc.]
** Please respond ONLY in the newsgroups **

"Think OOP"

dBASE, Inc. website: http://www.dbase.com
Marc VdB
2004-02-20 03:17:12 UTC
Permalink
Hi Ken,
Post by Ken Mayer [dBASE, Inc.]
Is there a separate handle for the image besides that of the image
object itself?
Yes, there is.
Post by Ken Mayer [dBASE, Inc.]
It seems to me that there wouldn't be ... I mean, why
would there be? The image object itself is the window object that has
the handle.
Yes, the image object is a window of a defined windowclass. But this window
is only there to provide a separate device context. (The famous DCs
<g>)dBase uses this DC to show the content of the image, but the real bitmap
lies somewhere else in memory and can be accessed when you know the
bitmap-handle (labeled HBITMAP in the OS)(and all other formats jpg,png,...
end up as bitmaps in memory, so they have this handle too)
If one uses the background-property of the form, then the DC of the whole
form is used and this background still has a handle of its own
Unfortunately, Windows provides no function to retrieve the handle of a
GDI-Object, if this object is not currently selected into a DC, which is not
the case with the dBase image class. Therefor my whish.

Cu, Marc

------
www.vdblogic.de/dbl/homee.htm
------
Jonny Kwekkeboom
2004-02-20 05:45:46 UTC
Permalink
Hi,

me too

cu
Jonny
Ken Mayer [dBASE, Inc.]
2004-02-20 15:30:43 UTC
Permalink
Post by Marc VdB
Hi Ken,
Post by Ken Mayer [dBASE, Inc.]
Is there a separate handle for the image besides that of the image
object itself?
Yes, there is.
Post by Ken Mayer [dBASE, Inc.]
It seems to me that there wouldn't be ... I mean, why
would there be? The image object itself is the window object that has
the handle.
Yes, the image object is a window of a defined windowclass. But this window
is only there to provide a separate device context. (The famous DCs
<g>)dBase uses this DC to show the content of the image, but the real bitmap
lies somewhere else in memory and can be accessed when you know the
bitmap-handle (labeled HBITMAP in the OS)(and all other formats jpg,png,...
end up as bitmaps in memory, so they have this handle too)
If one uses the background-property of the form, then the DC of the whole
form is used and this background still has a handle of its own
Unfortunately, Windows provides no function to retrieve the handle of a
GDI-Object, if this object is not currently selected into a DC, which is not
the case with the dBase image class. Therefor my whish.
I've entered QAID: 4702 for this.

(By the way, "wish" has only one 'h' in it <g>)

Ken
---
Ken Mayer [dBASE, Inc.]
** Please respond ONLY in the newsgroups **

"Think OOP"

dBASE, Inc. website: http://www.dbase.com
Marc VdB
2004-02-21 09:32:32 UTC
Permalink
Post by Ken Mayer [dBASE, Inc.]
I've entered QAID: 4702 for this.
(By the way, "wish" has only one 'h' in it <g>)
Ken
Thanks Khen

Mharc

Iht whasn't mhe, iht whas mhy kheyboard <vbgdrvf>
--
------
www.vdblogic.de/dbl/homee.htm
------
Loading...