graph_gui.c
changeset 1093 4fdc46eaf423
parent 1086 adbaa5bda683
child 1130 2f1b7c54a12d
equal deleted inserted replaced
1092:e3b4a131db7c 1093:4fdc46eaf423
   270 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   270 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   271 	_graph_legend_widgets,
   271 	_graph_legend_widgets,
   272 	GraphLegendWndProc
   272 	GraphLegendWndProc
   273 };
   273 };
   274 
   274 
   275 static void ShowGraphLegend()
   275 static void ShowGraphLegend(void)
   276 {
   276 {
   277 	AllocateWindowDescFront(&_graph_legend_desc, 0);
   277 	AllocateWindowDescFront(&_graph_legend_desc, 0);
   278 }
   278 }
   279 
   279 
   280 /********************/
   280 /********************/
   372 	_operating_profit_widgets,
   372 	_operating_profit_widgets,
   373 	OperatingProfitWndProc
   373 	OperatingProfitWndProc
   374 };
   374 };
   375 
   375 
   376 
   376 
   377 void ShowOperatingProfitGraph()
   377 void ShowOperatingProfitGraph(void)
   378 {
   378 {
   379 	if (AllocateWindowDescFront(&_operating_profit_desc, 0)) {
   379 	if (AllocateWindowDescFront(&_operating_profit_desc, 0)) {
   380 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   380 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   381 	}
   381 	}
   382 }
   382 }
   446 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   446 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   447 	_income_graph_widgets,
   447 	_income_graph_widgets,
   448 	IncomeGraphWndProc
   448 	IncomeGraphWndProc
   449 };
   449 };
   450 
   450 
   451 void ShowIncomeGraph()
   451 void ShowIncomeGraph(void)
   452 {
   452 {
   453 	if (AllocateWindowDescFront(&_income_graph_desc, 0)) {
   453 	if (AllocateWindowDescFront(&_income_graph_desc, 0)) {
   454 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   454 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   455 	}
   455 	}
   456 }
   456 }
   519 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   519 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   520 	_delivered_cargo_graph_widgets,
   520 	_delivered_cargo_graph_widgets,
   521 	DeliveredCargoGraphWndProc
   521 	DeliveredCargoGraphWndProc
   522 };
   522 };
   523 
   523 
   524 void ShowDeliveredCargoGraph()
   524 void ShowDeliveredCargoGraph(void)
   525 {
   525 {
   526 	if (AllocateWindowDescFront(&_delivered_cargo_graph_desc, 0)) {
   526 	if (AllocateWindowDescFront(&_delivered_cargo_graph_desc, 0)) {
   527 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   527 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   528 	}
   528 	}
   529 }
   529 }
   595 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   595 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   596 	_performance_history_widgets,
   596 	_performance_history_widgets,
   597 	PerformanceHistoryWndProc
   597 	PerformanceHistoryWndProc
   598 };
   598 };
   599 
   599 
   600 void ShowPerformanceHistoryGraph()
   600 void ShowPerformanceHistoryGraph(void)
   601 {
   601 {
   602 	if (AllocateWindowDescFront(&_performance_history_desc, 0)) {
   602 	if (AllocateWindowDescFront(&_performance_history_desc, 0)) {
   603 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   603 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   604 	}
   604 	}
   605 }
   605 }
   668 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   668 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   669 	_company_value_graph_widgets,
   669 	_company_value_graph_widgets,
   670 	CompanyValueGraphWndProc
   670 	CompanyValueGraphWndProc
   671 };
   671 };
   672 
   672 
   673 void ShowCompanyValueGraph()
   673 void ShowCompanyValueGraph(void)
   674 {
   674 {
   675 	if (AllocateWindowDescFront(&_company_value_graph_desc, 0)) {
   675 	if (AllocateWindowDescFront(&_company_value_graph_desc, 0)) {
   676 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   676 		InvalidateWindow(WC_GRAPH_LEGEND, 0);
   677 	}
   677 	}
   678 }
   678 }
   772 	_cargo_payment_rates_widgets,
   772 	_cargo_payment_rates_widgets,
   773 	CargoPaymentRatesWndProc
   773 	CargoPaymentRatesWndProc
   774 };
   774 };
   775 
   775 
   776 
   776 
   777 void ShowCargoPaymentRates()
   777 void ShowCargoPaymentRates(void)
   778 {
   778 {
   779 	AllocateWindowDescFront(&_cargo_payment_rates_desc, 0);
   779 	AllocateWindowDescFront(&_cargo_payment_rates_desc, 0);
   780 }
   780 }
   781 
   781 
   782 /************************/
   782 /************************/
   872 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   872 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   873 	_company_league_widgets,
   873 	_company_league_widgets,
   874 	CompanyLeagueWndProc
   874 	CompanyLeagueWndProc
   875 };
   875 };
   876 
   876 
   877 void ShowCompanyLeagueTable()
   877 void ShowCompanyLeagueTable(void)
   878 {
   878 {
   879 	AllocateWindowDescFront(&_company_league_desc,0);
   879 	AllocateWindowDescFront(&_company_league_desc,0);
   880 }
   880 }
   881 
   881 
   882 /*****************************/
   882 /*****************************/
  1092 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
  1092 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
  1093 	_performance_rating_detail_widgets,
  1093 	_performance_rating_detail_widgets,
  1094 	PerformanceRatingDetailWndProc
  1094 	PerformanceRatingDetailWndProc
  1095 };
  1095 };
  1096 
  1096 
  1097 void ShowPerformanceRatingDetail()
  1097 void ShowPerformanceRatingDetail(void)
  1098 {
  1098 {
  1099 	AllocateWindowDescFront(&_performance_rating_detail_desc, 0);
  1099 	AllocateWindowDescFront(&_performance_rating_detail_desc, 0);
  1100 }
  1100 }