Exemplo n.º 1
0
 internal DialogControl(DlgItemTemplateEx template)
 {
     Size        = new Size(template.cx, template.cy);
     Location    = new Point(template.x, template.y);
     Text        = template.title == null ? "" : template.title.ToString();
     WindowClass = template.windowClass;
 }
Exemplo n.º 2
0
        private static Dialog BuildEx(BinaryReader rdr)
        {
            var header = new DlgTemplateEx(rdr);

            var ctrls = new List <DlgItemTemplateEx>();

            rdr.Align4();

            for (var i = 0; i < header.cDlgItems; i++)
            {
                var ctrl = new DlgItemTemplateEx(rdr);
                ctrls.Add(ctrl);

                rdr.Align4();
            }

            var ret = new Dialog(header);

            foreach (var itemT in ctrls)
            {
                ret.Controls.Add(new DialogControl(itemT));
            }
            return(ret);
        }