- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Jugoslav. I'll let you know how it goes after the holiday.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked fine, Jugoslav, thanks again.
DC_PEN and DC_BRUSH are defined in DFWINTY, with vales 19 and 18.
Regards

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page