soorajchirag Posted April 4, 2005 Posted April 4, 2005 Hi All,I am Using the GetTextExtent() function in VC++ to get the extent of the string which is to be printed with the currently selected Font...There are two issues to it:a. My App is a console based Application: So i dont have a dependabe DC, I have to create my own or get a handle from somewhere( thats what i am doing right now) as follows: CDC memDC; memDC.CreateCompatibleDC ( CDC::FromHandle( GetDC ( GetActiveWindow())));But I think that the DC is the main Source of the Problem becoz of Which i am not getting the correct Widthb. Second Issue: I want to use Twips as the unit of Measurement... For that i am using the SetMapMode Function(MM_TWIPS) i think tis is Correct.....Anyone who finds out a way to either correct me somewhere or suggest an absolutely new way .. please Help!!!This has been delayed for a long time now...Thanks and regards,Soorajchirag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now