Esempio n. 1
0
        public void CreateSubWindow(LTFrameNetClass dddddd)
        {
            int             ww = 640, wh = 510;
            Rectangle       rect = Lib.CenterWindow(ww, wh);
            LTFrameNetClass ltf  = new LTFrameNetClass("LTFrame-transparent", "SubWindow", dddddd.windowHandle(), Win32DataType.WS_POPUP | Win32DataType.WS_VISIBLE, 0, 0, ww, wh, IntPtr.Zero);

            ltf.loadFile(Lib.GetAppPath + @"./template/SubWindow.html");
            ltf.EnableDragFrameChangeSize(false);

            subwindowlist.Add(ltf.windowHandle(), ltf);
            fn1 = new LTNativeFunction(DragWindowFun);
            fn2 = new LTNativeFunction(CloseWindowFun);
            ltf.BindUserFunction("DragWindow", fn1, 1);
            ltf.BindUserFunction("CloseWindow", fn2, 0);
            h1 = new HandleUserMessageCallBack(HandleUserMessage);
            ltf.SetHandleUserMessageCallBack(h1);
        }