Net_Owl_BC_done/Arty.cpp
/* When the window is resized, scale the line list to fit the new
  window extent, or switch between full size and iconized window
  states.  */
When the window is resized, scale the line list to fit the new
window extent, or switch between full size and iconized window
states.
When the window is resized scale the line list to fit the new window extent or switch between full size and iconized window states .
void TArtyWindow::WMSize( TMessage& Message )
{
  int NewXmax, NewYmax;
  TWindow::WMSize(Message);
  InvalidateRect(HWindow, NULL, TRUE);
  NewXmax = Message.LP.Lo;  NewYmax = Message.LP.Hi;
  if (IsIconic(HWindow)) {
    if (!Iconized) {  Iconized = TRUE;    List = IconicLineList;  }
  } else {
    if (Iconized) {   Iconized = FALSE;   List = BigLineList;   };
    NewYmax -= TextHeight;  
  };
  List->ScaleTo(NewXmax, NewYmax);  
}
void TArtyWindow :: WMSize ( TMessage & Message ) { int NewXmax , NewYmax ; TWindow :: WMSize ( Message ) ; InvalidateRect ( HWindow , NULL , TRUE ) ; NewXmax = Message . LP . Lo ; NewYmax = Message . LP . Hi ; if ( IsIconic ( HWindow ) ) { if ( ! Iconized ) { Iconized = TRUE ; List = IconicLineList ; } } else { if ( Iconized ) { Iconized = FALSE ; List = BigLineList ; } ; NewYmax -= TextHeight ; } ; List -> ScaleTo ( NewXmax , NewYmax ) ; }
When the window is resized, scale the line list to fit the new
window extent, or switch between full size and iconized window
states.
When the window is resized scale the line list to fit the new window extent or switch between full size and iconized window states .
/* Force Windows to repaint the entire window region */ /* allow room for the text at the bottom */ /* scale the lines in the list */ /* if (StaticControl)
    MoveWindow(StaticControl->HWindow, 0, NewYmax, NewXmax, TextHeight, True);*/