Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

BitMaps

smarcher2
Beginner
724 Views
Can anyone point me to examples of puttingapplication generated bitmaps out toa static bitmap control on a dialog using quickwin?
steve
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
724 Views
Check out DLG_BITMAP (and perhaps DLG_DRAWITEM) extensions in my XFLOGM "fork" of DFLOGM.
Jugoslav
0 Kudos
smarcher2
Beginner
724 Views

That's slick. I've tried out the Dialog Test example and I like it. That's half of my problem - I'm also trying to create the bit map in memory and then display it. I'm new to this, I'm mostly a scientific programmer. Do you have any examples of programs that do what I'm trying to do?

steve

0 Kudos
Jugoslav_Dujic
Valued Contributor II
724 Views

Well, DialogTest sample does that as well, using DLG_DRAWITEM callback, so you can draw on the static control's surface in run-time (the image in the sample is very simple, I admit).

On the XFT page of my home page you can find XFTGDI module and XDblBuffer sample. They demonstrate how to create an off-screen image and "copy it" onto the window DC. XDblBuffer does that for the main window, but you can combine the technique with DLG_DRAWITEM callback (DLG_DRAWITEM is actually sent when an owner-drawn control receives a WM_PAINT, so the principle is the same). XFTLite sample application also shows how you can render the image on the printer or save it into a .bmp or .wmf file.

(P.S. I forgot to mention on the page that you have to make sure that
!DEC$DEFINE XLITE is the first line in XFTGDI.f90 if you want to use it in your projects)

Jugoslav

0 Kudos
Reply