MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / NWmCommand

Function NWmCommand

wdriver.cpp:1222–2519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220// -1 meaning it's not a custom command and Windows should deal with it.
1221
1222int NWmCommand(WORD wCmd)
1223{
1224 char sz[cchSzDef];
1225 DLGPROC dlgproc;
1226 RECT rc;
1227 POINT pt;
1228 CI ci;
1229 int i;
1230 long l;
1231 real r;
1232 flag fGraphicsSav, fRestoreSize = fFalse, fT;
1233#ifdef CONSTEL
1234#ifdef SWISS
1235 CONST char **ppch;
1236#endif
1237#endif // CONSTEL
1238
1239#ifdef EXPRESS
1240 // May want to adjust current command if AstroExpression says to do so.
1241 if (!us.fExpOff && FSzSet(us.szExpMenu)) {
1242 ExpSetN(iLetterZ, wCmd);
1243 ParseExpression(us.szExpMenu);
1244 wCmd = NExpGet(iLetterZ);
1245 }
1246#endif
1247 wi.wCmd = wCmd;
1248 fGraphicsSav = us.fGraphics;
1249 switch (wCmd) {
1250
1251 // File Menu
1252
1253 case cmdOpenChart:
1254 wi.nDlgChart = 1;
1255 DlgOpenChart();
1256 break;
1257
1258 case cmdOpenChart2:
1259 wi.nDlgChart = 2;
1260 DlgOpenChart();
1261 break;
1262
1263 case cmdSaveChart:
1264 case cmdSavePositions:
1265 case cmdSaveSettings:
1266 case cmdSaveList:
1267 case cmdSaveAAF:
1268 case cmdSaveQuick:
1269 case cmdSaveCalendar:
1270 case cmdSaveText:
1271 case cmdSaveBitmap:
1272#ifdef META
1273 case cmdSavePicture:
1274#endif
1275#ifdef PS
1276 case cmdSavePS:
1277#endif
1278#ifdef SVG
1279 case cmdSaveSVG:

Callers 2

WinMainFunction · 0.85
WndProcFunction · 0.85

Calls 15

ExpSetNFunction · 0.85
NExpGetFunction · 0.85
DlgOpenChartFunction · 0.85
DlgSaveChartFunction · 0.85
DlgOpenDirFunction · 0.85
DlgPrintFunction · 0.85
PrintWarningFunction · 0.85
FFilePasteFunction · 0.85
DrawClearScreenFunction · 0.85
ResizeWindowToChartFunction · 0.85
AnimateFunction · 0.85
SetRelFunction · 0.85

Tested by

no test coverage detected