예제 #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");
            }
        }
예제 #2
0
 public Visual(HGadget gadParent, int idClass)
 {
     CommonBuild(Common.CastGadgetDirect(gadParent.hgad), idClass);
 }
예제 #3
0
 public Visual(HGadget gadParent)
 {
     CommonBuild(Common.CastGadgetDirect(gadParent.hgad), idVisual);
 }