Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Interface wanted for SetDCPenColor

anthonyrichards
New Contributor III
441 Views
I want to use windows API function SetDCPenColor.
Can anyone supply an Interface block for it?
It is not in GDI32.F90, where I expected it to be.
thanks in advance
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
441 Views

interface
integer(ULONG) function SetDCPenColor(hDC, crColor)
!DEC$ATTRIBUTES DEFAULT, STDCALL, DECORATE, ALIAS:
'SetDCPenColor':: SetDCPenColor
use DFWINTY
integer(HANDLE):: hDC
integer(ULONG):: crColor
end function
end interface

Be aware -- Win2000 or newer only.

Jugoslav

0 Kudos
anthonyrichards
New Contributor III
441 Views

Thanks, Jugoslav. I'll let you know how it goes after the holiday.

0 Kudos
anthonyrichards
New Contributor III
441 Views

It worked fine, Jugoslav, thanks again.

DC_PEN and DC_BRUSH are defined in DFWINTY, with vales 19 and 18.

Regards

0 Kudos
Reply