/// <summary> /// Shows Print Preview Form /// </summary> /// <param name="hWnd"> Handle of Print Preview form</param> internal void Show(IntPtr hWnd) { _commandType = CommandType.PRINTPREVIEW_SHOW; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = hWnd; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Update Print Preview /// </summary> /// <param name="prnPrevData">print preview data</param> internal void Update(IntPtr prnPrevData) { _commandType = CommandType.PRINTPREVIEW_UPDATE; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = prnPrevData; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Destroys a window /// </summary> /// <param name="hWndPtr">handle of window</param> internal void DestroyGuiWindow(IntPtr hWndPtr) { _commandType = CommandType.DESTROY_WINDOW; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = hWndPtr; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Returns active form /// </summary> /// <returns></returns> internal IntPtr GetActiveForm() { _commandType = CommandType.PRINTPREVIEW_GETACTIVEFORM; _printPreviewData = new PrintPreviewData(); GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); return(_printPreviewData.intPtr1); }
/// <summary> /// Set cursor for Print Preview Form /// </summary> /// <param name="printPreviewDataPtr"></param> internal void SetCursor(IntPtr printPreviewDataPtr) { _commandType = CommandType.PRINTPREVIEW_SET_CURSOR; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = printPreviewDataPtr; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Show Print Dialog /// </summary> /// <param name="prnPrevData">print dialog info</param> internal int showPrintDialog(IntPtr gpd) { _commandType = CommandType.SHOW_PRINT_DIALOG; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = gpd; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); return(_printPreviewData.number1); }
/// <summary> /// Closes Print Preview form /// </summary> /// <param name="hWnd"> Print Preview data</param> /// <param name="hWnd"> Handle of Print Preview form</param> internal void Close(IntPtr printPreviewData, IntPtr hWnd) { _commandType = CommandType.PRINTPREVIEW_CLOSE; _printPreviewData = new PrintPreviewData(); _printPreviewData.intPtr1 = hWnd; _printPreviewData.intPtr2 = printPreviewData; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Create Rich Edit /// </summary> /// <param name="contextId"></param> /// <param name="ctrlPtr"></param> /// <param name="prmPtr"></param> /// <param name="style"></param> /// <param name="dwExStyle"></param> internal void createRichWindow(Int64 contextID, IntPtr ctrlPtr, IntPtr prmPtr, uint style, uint dwExStyle) { _commandType = CommandType.CREATE_RICH_WINDOW; _printPreviewData = new PrintPreviewData(); _printPreviewData.Int64Val = contextID; _printPreviewData.intPtr1 = ctrlPtr; _printPreviewData.intPtr2 = prmPtr; _printPreviewData.style = (int)style; _printPreviewData.number1 = (int)dwExStyle; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
/// <summary> /// Creates Print Preview Form /// </summary> /// <param name="contextId">context id</param> /// <param name="ioPtr">pointer to current IORT object</param> /// <param name="copies">number of copies</param> /// <param name="enablePDlg">indicates whether to enable Print dialog</param> /// <param name="callerWindow">caller window of Print Preview</param> internal void Start(Int64 contextID, IntPtr ioPtr, int copies, bool enablePDlg, Form callerWindow) { _commandType = CommandType.PRINTPREVIEW_START; _printPreviewData = new PrintPreviewData(); _printPreviewData.Int64Val = contextID; _printPreviewData.intPtr1 = ioPtr; _printPreviewData.boolVal = enablePDlg; _printPreviewData.number1 = copies; _printPreviewData.callerWindow = callerWindow; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); }
///<summary> /// Creates a window using win32 API from GUI Thread. ///</summary> ///<param name="exStyle">!!.</param> ///<param name="className">!!.</param> ///<param name="windowName">!!.</param> ///<param name="style">!!.</param> ///<param name="x">!!.</param> ///<param name="y">!!.</param> ///<param name="width">!!.</param> ///<param name="height">!!.</param> ///<param name="hwndParent">!!.</param> ///<param name="hMenu">!!.</param> ///<param name="hInstance">!!.</param> ///<param name="lParam">!!.</param> ///<returns>handle of window</returns> internal IntPtr CreateGuiWindow(uint exStyle, String className, String windowName, uint style, int x, int y, int width, int height, IntPtr hwndParent, IntPtr hMenu, IntPtr hInstance, IntPtr lParam) { _commandType = CommandType.CREATE_WINDOW; _printPreviewData = new PrintPreviewData(); _printPreviewData.extendedStyle = (int)exStyle; _printPreviewData.style = (int)style; _printPreviewData.className = className; _printPreviewData.windowName = windowName; _printPreviewData.number1 = x; _printPreviewData.number1 = y; _printPreviewData.number1 = width; _printPreviewData.number1 = height; _printPreviewData.intPtr1 = hwndParent; _printPreviewData.intPtr2 = hMenu; _printPreviewData.intPtr3 = hInstance; _printPreviewData.intPtr4 = lParam; GUIMain.getInstance().invoke(new PrintPreviewDelegate(Run)); return(_printPreviewData.intPtr1); }