Re: Print dialog issues on win32



Alexander Larsson wrote:
I'm working on using the win32 print dialog (PrintDlgEx) behind the highlevel printing API I've been posting about. I've stumbled on an issue though. PrintDlgEx is a blocking call, so if you call it the mainloop won't execute until it returns. This means your other windows won't even repaint.

Why not just use SetTimer?


------
void CALLBACK update_gui(HWND, UINT, UINT, DWORD)
{
       while (gtk_events_pending ())
               gtk_main_iteration();
}

...

UINT timer_id = SetTimer(NULL, 0, 10, update_gui);
PrintDlgEx(...);
KillTimer(NULL, timer_id);
------



---
Daniel K. O.


	

	
		
_______________________________________________________ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]