TListViewCtrl::TListViewCtrl(TWindow* parent, int resourceId, TModule* module)
:
  TControl(parent, resourceId, module)
{
  if (!TCommCtrl::IsAvailable())
    throw TXCommCtrl();
}
TListViewCtrl::TListViewCtrl(TWindow* parent, int id, int x, int y, int w, int h, TModule* module)
:
  TControl(parent, id, 0, x, y, w, h, module)
{
  if (!TCommCtrl::IsAvailable())
    throw TXCommCtrl();

  Attr.ExStyle |= WS_EX_CLIENTEDGE;
}
//
/// Constructs a TXCommCtrl exception from scratch, and throws it.
//
void
TXCommCtrl::Raise()
{
  TXCommCtrl().Throw();
}