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. How to overwrite one angle arc over other during runtime

How to overwrite one angle arc over other during runtime

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • M Offline
    M Offline
    Member 10536430
    wrote on last edited by
    #1

    I used angle arc to divide circle into 8 segments, when i extend an angle of one angle arc then the other dissappears , it does not overwrites what to do? What I have tried: i used the below code MoveToEx(hMemDC,50,50 , (LPPOINT) NULL); AngleArc(hMemDC, 50 , 50 , 47, 0, 45); SetArcDirection(m_hMemDC, AD_CLOCKWISE); LineTo(hMemDC,50,50); EndPath(hMemDC); StrokeAndFillPath(hMemDC); then MoveToEx(hMemDC,50,50 , (LPPOINT) NULL); AngleArc(hMemDC, 50 , 50 , 47, 45, 45); SetArcDirection(m_hMemDC, AD_CLOCKWISE); LineTo(hMemDC,50,50); EndPath(hMemDC); StrokeAndFillPath(hMemDC); and so on.. now if i want to increase the angle of 2nd segment to 55 degrees then the 3rd segment dissappears. how to solve it ?

    Kornfeld Eliyahu PeterK 1 Reply Last reply
    0
    • M Member 10536430

      I used angle arc to divide circle into 8 segments, when i extend an angle of one angle arc then the other dissappears , it does not overwrites what to do? What I have tried: i used the below code MoveToEx(hMemDC,50,50 , (LPPOINT) NULL); AngleArc(hMemDC, 50 , 50 , 47, 0, 45); SetArcDirection(m_hMemDC, AD_CLOCKWISE); LineTo(hMemDC,50,50); EndPath(hMemDC); StrokeAndFillPath(hMemDC); then MoveToEx(hMemDC,50,50 , (LPPOINT) NULL); AngleArc(hMemDC, 50 , 50 , 47, 45, 45); SetArcDirection(m_hMemDC, AD_CLOCKWISE); LineTo(hMemDC,50,50); EndPath(hMemDC); StrokeAndFillPath(hMemDC); and so on.. now if i want to increase the angle of 2nd segment to 55 degrees then the 3rd segment dissappears. how to solve it ?

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      You should decide where to ask this question...Re-posting here (after the QA) will not gain you any advantage, but maybe some who thing you are annoying them...

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      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