Unable to get CRgn....
-
Hi Friends,:) I'm facing some problem while creating a region from the path that is selected in the given device context. I'm doing following steps 1. Getting the DC 2. Set the font size and background mode 3. Call beginpath 4. Call the text out method 5. Calling the endpath 6. making a call to CreateFromPath Now if I use any other function like say rect or ellipse then CreateFromPath() gives me a valid region but if I use the textout it gives me a null region I'm unable to figure it out.. :confused: it would be great if anyone can help me out... :cool: Thanks Nilesh
-
Hi Friends,:) I'm facing some problem while creating a region from the path that is selected in the given device context. I'm doing following steps 1. Getting the DC 2. Set the font size and background mode 3. Call beginpath 4. Call the text out method 5. Calling the endpath 6. making a call to CreateFromPath Now if I use any other function like say rect or ellipse then CreateFromPath() gives me a valid region but if I use the textout it gives me a null region I'm unable to figure it out.. :confused: it would be great if anyone can help me out... :cool: Thanks Nilesh
Actually I can't understand what for you need to convert some text into a path :) But it seems to me that each letter of your text is a subpath and you should close each subpathwith the help of CloseFigure function. (Petzold "Programming Windows 95", Chapter 4) Hope this helps