Hi All.
Хочу создать стандартный Win контрол — "buton", "listview" и т.д.
public class ListView : System.Windows.Forms.Control
{
protected override CreateParams CreateParams {
get{
const int WS_TABSTOP = 0x00010000;
const int WS_CHILD = 0x40000000;
const int WS_BORDER = 0x00800000;
const int WS_VISIBLE = 0x10000000;
const int LVS_AUTOARRANGE = 0x00000100;
const int LVS_REPORT = 0x00000003;
const int LVS_OWNERDATA = 0x00001000;
const int WS_EX_CLIENTEDGE = 0x00000200;
CreateParams ControlParams = base.CreateParams;
ControlParams.ClassName = "SysListView32";
ControlParams.ExStyle = WS_EX_CLIENTEDGE;
ControlParams.Style = WS_TABSTOP | WS_CHILD | WS_BORDER | WS_VISIBLE | LVS_AUTOARRANGE | LVS_REPORT | LVS_OWNERDATA;
return ControlParams;
}
}
}
Куда идти дальше?
23.12.03 17:57: Перенесено модератором из '.NET' — AVK