Ejemplo n.º 1
0
        public static mgcConfWindow fillConfWindow(IntPtr hwnd)
        {
            mgcConfWindow window = new mgcConfWindow();

            window.hwndMain = hwnd;

            IntPtr temp1 = apiFindWindow(window.hwndMain, IntPtr.Zero, MGC_WINDOW, null);

            window.hwndMaximiseBTN = apiFindWindow(temp1, IntPtr.Zero, null, null);
            window.hwndAudioBTN = apiFindWindow(temp1, window.hwndMaximiseBTN, null, null);
            window.hwndSnapshotBTN = apiFindWindow(temp1, window.hwndAudioBTN, null, null);
            window.hwndVideoBTN = apiFindWindow(temp1, window.hwndSnapshotBTN, null, null);
            window.hwndStatusBar = apiFindWindow(temp1, window.hwndVideoBTN, null, null);

            IntPtr temp4 = apiFindWindow(temp1, window.hwndStatusBar, null, null);

            window.hwndPromoteBTN = apiFindWindow(temp1, temp4, null, null);

            window.Border = apiGetRect(window.hwndMain);

            string[] userinfo = apiGetControlText(window.hwndStatusBar).Split('-');
            if (userinfo.Length == 2)
            {
                if (userinfo[0] != "") window.DisplayName = userinfo[0].Trim();
                if (userinfo[1] != "") window.Location = userinfo[1].Trim();
            }

            return window;
        }
Ejemplo n.º 2
0
 public void Add(mgcConfWindow aWindow)
 {
     windows[Length] = aWindow;
     Length++;
 }