Textwidth() and font positioning.

BlitzMax Forums/BlitzMax Beginners Area/Textwidth() and font positioning.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Okay, I'm going to need someone to point me in the right direction. I found the command I need

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_5cz6.asp

But I'm at a bit of a loss as how to call it from Blitz. As fonts use the gdi32.dll (apparently) I tried to extern it into blitz, but it's not very happy with that.

ifirstchar and ilastchar are self explanitory. When it says lpbuffer I assume that's a bank or an int to return the value I want yeah?

I have no idea though what hdc (handle to DC) means. "Handle to the device context", does it mean the screen created with the graphics command, and if so what do I pass to it?

Very lost, never been anywhere near the system stuff before.