Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unable to get CRgn....

Unable to get CRgn....

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nilesh Karkhanis
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • N Nilesh Karkhanis

      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

      S Offline
      S Offline
      Space Ace
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups