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. Serialize a CRgn?

Serialize a CRgn?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 1 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.
  • U Offline
    U Offline
    User 3741
    wrote on last edited by
    #1

    I've been trying to figure out how to serialize a CRgn and I can't get it to work right. I know it involes accessing its RGNDATA structure etc, but I can't seem to get it right. Has anyone done this or have any ideas? Thanks in advance.

    F 1 Reply Last reply
    0
    • U User 3741

      I've been trying to figure out how to serialize a CRgn and I can't get it to work right. I know it involes accessing its RGNDATA structure etc, but I can't seem to get it right. Has anyone done this or have any ideas? Thanks in advance.

      F Offline
      F Offline
      Feng Yuan
      wrote on last edited by
      #2

      DWORD size = GetRgnData(hRgn, 0, NULL); RGNDATA * pData = (RGNDATA *) new BYTE[size]; GetRgnData(hRgn, size, pData); WriteFile(hFile, ,,, pData, size,,,); delete [] (BYTE *) pData;

      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