Re: Print dialog issues on win32
- From: "Daniel K. O." <danielosmari yahoo com br>
- To: Alexander Larsson <alexl redhat com>
- Cc: gtk-devel-list gnome org, jpe wingide com
- Subject: Re: Print dialog issues on win32
- Date: Mon, 30 Jan 2006 15:12:17 -0200
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]