Exemple #1
0
 // Resize UI element to fit width
 void ResizeSoundItem(SoundItem item)
 {
     int style = GetWindowLong(flowLayoutPanel1.Handle, GWL_STYLE);
     bool hasVScroll = ((style & WS_VSCROLL) != 0);
     item.HandleResize(flowLayoutPanel1.Width - 8 - ((hasVScroll) ? SystemInformation.VerticalScrollBarWidth : 0));
 }