Beispiel #1
0
        public HGadget(HGadget gadParent)
        {
            int hgad = CreateGadget(gadParent.hgad, gcSimple,
                                    new GADGETPROC(this.RawGadgetProc), 0);

            if (hgad != 0)
            {
                this.hgad = hgad;
            }
            else
            {
                uint error = Common.GetLastError();
                throw new System.SystemException("Unable to create new HGadget");
            }
        }
Beispiel #2
0
 public Visual(HGadget gadParent, int idClass)
 {
     CommonBuild(Common.CastGadgetDirect(gadParent.hgad), idClass);
 }
Beispiel #3
0
 public Visual(HGadget gadParent)
 {
     CommonBuild(Common.CastGadgetDirect(gadParent.hgad), idVisual);
 }