| 265 | // menu command, and erase the bullet by the menu command for the old mode. |
| 266 | |
| 267 | void SetRel(int rc) |
| 268 | { |
| 269 | CI ciT; |
| 270 | |
| 271 | if (us.nRel == rcMidpoint) { // Restore chart when leave midpoint mode. |
| 272 | ciT = ciMain; |
| 273 | ciCore = ciMain = ciSave; |
| 274 | ciSave = ciT; |
| 275 | } |
| 276 | if (rc == rcMidpoint) // Remember chart so can restore it later. |
| 277 | ciSave = ciMain; |
| 278 | us.nRel = rc; |
| 279 | RadioMenu(cmdRelBiorhythm, cmdRelTransit, CmdFromRc(rc)); |
| 280 | wi.fCast = fTrue; |
| 281 | } |
| 282 | |
| 283 | |
| 284 | // Display and process the specified right click context popup menu. |
no test coverage detected