//----------------------------------------------------------- NS_IMETHODIMP nsPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIWebBrowserPrint *webBrowserPrint, nsIPrintSettings *printSettings) { NS_ENSURE_ARG(parent); HWND hWnd = GetHWNDForDOMWindow(parent); NS_ASSERTION(hWnd, "Couldn't get native window for PRint Dialog!"); return NativeShowPrintDialog(hWnd, webBrowserPrint, printSettings); }
//----------------------------------------------------------- NS_IMETHODIMP CPrintingPromptService::ShowPrintDialog(nsIDOMWindow *parent, nsIWebBrowserPrint *webBrowserPrint, nsIPrintSettings *printSettings) { //NS_ENSURE_ARG(parent); CWnd* wnd = CWndForDOMWindow(parent); NS_ASSERTION(wnd && wnd->m_hWnd, "Couldn't get native window for PRint Dialog!"); if (wnd && wnd->m_hWnd) { return NativeShowPrintDialog(wnd->m_hWnd, webBrowserPrint, printSettings); } else { return NS_ERROR_FAILURE; } }