Пример #1
0
static void OnPaintWaypointPicto(WindowControl * Sender, HDC hDC){
#ifdef PICTORIALS
	  (void)Sender;
	  WndFrame  *wPicto = ((WndFrame *)wf->FindByName(TEXT("frmWaypointPicto")));
	  LKASSERT(wPicto!=NULL);

RECT *prc;
prc = wPicto->GetBoundRect();


//  StartupStore(_T("..Entered OnPaintWaypointPicto \n"));

  SetBkColor  (hDC, RGB_LIGHTGREY);

  if (WayPointCalc[SelectedWaypoint].IsLandable )
  {
	MapWindow::DrawRunway(hDC,&WayPointList[SelectedWaypoint],  *prc, 3500*ScreenScale, true);
  }
  else
  {
	MapWindow::DrawWaypointPictoBg(hDC,  *prc);
	MapWindow::DrawWaypointPicto(hDC,  *prc, &WayPointList[SelectedWaypoint]);
  }
#endif
}
Пример #2
0
static void OnPaintAirspacePicto(WindowControl * Sender, HDC hDC){
	  (void)Sender;
	  RECT *prc;
#ifdef ASP_WARNING_PICTO
	  WndFrame  *wPicto = ((WndFrame *)dlg->FindByName(TEXT("frmAirspacePicto")));
	  prc = wPicto->GetBoundRect();


	  SetBkColor  (hDC, RGB_LIGHTGREY);
	//  airspace_copy.DrawPicto(hDC, *prc, true);
      /*************************************************************
       * @Paolo
       * for drawing the airspace pictorial, we need the original data.
       * seems that the copy does not contain geo data
       * Do we really need to work with the copy?
       * works fine with the origin airspace
       ************************************************************/
	  msg.originator->DrawPicto(hDC, *prc, true);
#endif

}