equal
deleted
inserted
replaced
314 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
314 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
315 _graph_legend_widgets, |
315 _graph_legend_widgets, |
316 GraphLegendWndProc |
316 GraphLegendWndProc |
317 }; |
317 }; |
318 |
318 |
319 static void ShowGraphLegend(void) |
319 static void ShowGraphLegend() |
320 { |
320 { |
321 AllocateWindowDescFront(&_graph_legend_desc, 0); |
321 AllocateWindowDescFront(&_graph_legend_desc, 0); |
322 } |
322 } |
323 |
323 |
324 /********************/ |
324 /********************/ |
413 _operating_profit_widgets, |
413 _operating_profit_widgets, |
414 OperatingProfitWndProc |
414 OperatingProfitWndProc |
415 }; |
415 }; |
416 |
416 |
417 |
417 |
418 void ShowOperatingProfitGraph(void) |
418 void ShowOperatingProfitGraph() |
419 { |
419 { |
420 if (AllocateWindowDescFront(&_operating_profit_desc, 0)) { |
420 if (AllocateWindowDescFront(&_operating_profit_desc, 0)) { |
421 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
421 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
422 } |
422 } |
423 } |
423 } |
481 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
481 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
482 _income_graph_widgets, |
482 _income_graph_widgets, |
483 IncomeGraphWndProc |
483 IncomeGraphWndProc |
484 }; |
484 }; |
485 |
485 |
486 void ShowIncomeGraph(void) |
486 void ShowIncomeGraph() |
487 { |
487 { |
488 if (AllocateWindowDescFront(&_income_graph_desc, 0)) { |
488 if (AllocateWindowDescFront(&_income_graph_desc, 0)) { |
489 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
489 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
490 } |
490 } |
491 } |
491 } |
548 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
548 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
549 _delivered_cargo_graph_widgets, |
549 _delivered_cargo_graph_widgets, |
550 DeliveredCargoGraphWndProc |
550 DeliveredCargoGraphWndProc |
551 }; |
551 }; |
552 |
552 |
553 void ShowDeliveredCargoGraph(void) |
553 void ShowDeliveredCargoGraph() |
554 { |
554 { |
555 if (AllocateWindowDescFront(&_delivered_cargo_graph_desc, 0)) { |
555 if (AllocateWindowDescFront(&_delivered_cargo_graph_desc, 0)) { |
556 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
556 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
557 } |
557 } |
558 } |
558 } |
617 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
617 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
618 _performance_history_widgets, |
618 _performance_history_widgets, |
619 PerformanceHistoryWndProc |
619 PerformanceHistoryWndProc |
620 }; |
620 }; |
621 |
621 |
622 void ShowPerformanceHistoryGraph(void) |
622 void ShowPerformanceHistoryGraph() |
623 { |
623 { |
624 if (AllocateWindowDescFront(&_performance_history_desc, 0)) { |
624 if (AllocateWindowDescFront(&_performance_history_desc, 0)) { |
625 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
625 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
626 } |
626 } |
627 } |
627 } |
684 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
684 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
685 _company_value_graph_widgets, |
685 _company_value_graph_widgets, |
686 CompanyValueGraphWndProc |
686 CompanyValueGraphWndProc |
687 }; |
687 }; |
688 |
688 |
689 void ShowCompanyValueGraph(void) |
689 void ShowCompanyValueGraph() |
690 { |
690 { |
691 if (AllocateWindowDescFront(&_company_value_graph_desc, 0)) { |
691 if (AllocateWindowDescFront(&_company_value_graph_desc, 0)) { |
692 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
692 InvalidateWindow(WC_GRAPH_LEGEND, 0); |
693 } |
693 } |
694 } |
694 } |
782 _cargo_payment_rates_widgets, |
782 _cargo_payment_rates_widgets, |
783 CargoPaymentRatesWndProc |
783 CargoPaymentRatesWndProc |
784 }; |
784 }; |
785 |
785 |
786 |
786 |
787 void ShowCargoPaymentRates(void) |
787 void ShowCargoPaymentRates() |
788 { |
788 { |
789 Window *w = AllocateWindowDescFront(&_cargo_payment_rates_desc, 0); |
789 Window *w = AllocateWindowDescFront(&_cargo_payment_rates_desc, 0); |
790 if (w == NULL) return; |
790 if (w == NULL) return; |
791 |
791 |
792 /* Count the number of active cargo types */ |
792 /* Count the number of active cargo types */ |
903 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, |
903 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, |
904 _company_league_widgets, |
904 _company_league_widgets, |
905 CompanyLeagueWndProc |
905 CompanyLeagueWndProc |
906 }; |
906 }; |
907 |
907 |
908 void ShowCompanyLeagueTable(void) |
908 void ShowCompanyLeagueTable() |
909 { |
909 { |
910 AllocateWindowDescFront(&_company_league_desc,0); |
910 AllocateWindowDescFront(&_company_league_desc,0); |
911 } |
911 } |
912 |
912 |
913 /*****************************/ |
913 /*****************************/ |
1142 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
1142 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET, |
1143 _performance_rating_detail_widgets, |
1143 _performance_rating_detail_widgets, |
1144 PerformanceRatingDetailWndProc |
1144 PerformanceRatingDetailWndProc |
1145 }; |
1145 }; |
1146 |
1146 |
1147 void ShowPerformanceRatingDetail(void) |
1147 void ShowPerformanceRatingDetail() |
1148 { |
1148 { |
1149 AllocateWindowDescFront(&_performance_rating_detail_desc, 0); |
1149 AllocateWindowDescFront(&_performance_rating_detail_desc, 0); |
1150 } |
1150 } |