I'm a old newbie programmer of Windows. I have a book which described programming in the old Windows v.1.1 (yeah, that old). Surprisingly, most of the techniques described there are still applicable in Win32 programming, other than changing the size of 'words' into dwords, and not getting the previous instance's data (which got me a GPF when I tried it).
Now, the book describes an API function called 'GetTextExtents().' This function takes an hDC, a pointer to a string and the string's length. However, I took a look at my include files, and I found that I do NOT have this function in my library. I HAVE found a bunch of other functions (note that they are declared in MASM form):
GetTextExtentExPointA PROTO
WORD,
WORD,
WORD,
WORD,
WORD,
WORD,
WORD
GetTextExtentExPoint equ <GetTextExtentExPointA>
GetTextExtentExPointI PROTO
WORD,
WORD,
WORD,
WORD,
WORD,
WORD,
WORD
GetTextExtentPoint32A PROTO
WORD,
WORD,
WORD,
WORD
GetTextExtentPoint32 equ <GetTextExtentPoint32A>
GetTextExtentPointA PROTO
WORD,
WORD,
WORD,
WORD
GetTextExtentPoint equ <GetTextExtentPointA>
GetTextExtentPointI PROTO
WORD,
WORD,
WORD,
WORD
Now all of the GetTextExtent functions have a 'Point' in their names, and they all have at least four arguments, as opposed to the three arguments of the original GetTextExtents(). Was GetTextExtents removed from the API? Or is my Win library incomplete (after all, the Win library for MASM was kinda reverse-engineered I think by Iczelion and others)?
"Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
Now, the book describes an API function called 'GetTextExtents().' This function takes an hDC, a pointer to a string and the string's length. However, I took a look at my include files, and I found that I do NOT have this function in my library. I HAVE found a bunch of other functions (note that they are declared in MASM form):
GetTextExtentExPointA PROTO
GetTextExtentExPoint equ <GetTextExtentExPointA>
GetTextExtentExPointI PROTO
GetTextExtentPoint32A PROTO
GetTextExtentPoint32 equ <GetTextExtentPoint32A>
GetTextExtentPointA PROTO
GetTextExtentPoint equ <GetTextExtentPointA>
GetTextExtentPointI PROTO
Now all of the GetTextExtent functions have a 'Point' in their names, and they all have at least four arguments, as opposed to the three arguments of the original GetTextExtents(). Was GetTextExtents removed from the API? Or is my Win library incomplete (after all, the Win library for MASM was kinda reverse-engineered I think by Iczelion and others)?
"Information has a tendency to be free. Which means someone will always tell you something you don't want to know."