akhudairy wrote:muaddib wrote:Can you, please, give an updated code for the latest CEF build?
Well here is an answer just a little bit late ... well 6 years late ... I did the code as suggested by @crast. .. I think I just did minor changes. I am building branch 4147 cef 84.1.1
\code\chromium_git\chromium\src\printing\printing_context_system_dialog_win.cc
HRESULT PrintingContextSystemDialogWin::ShowPrintDialog(PRINTDLGEX* options) {
static bool is_dialog_shown = false;
if (is_dialog_shown)
return E_FAIL;
base::AutoReset<bool> auto_reset(&is_dialog_shown, true);
options->Flags |= PD_RETURNDEFAULT; // 0x00000400
HRESULT result = PrintDlgEx(options);
options->dwResultAction = PD_RESULT_PRINT; //0x1
return result;
}
how can i make it in cefpython