15 Jul
2010
15 Jul
'10
5:15 a.m.
Dear All,
I am writing a GTK application on Win32. I need to create a Windows style file selection dialog using GetOpenFileName function. I have referred to your source code to see how you did it (filedialogimpl-win32.cpp). I see you are calling GetOpenFileName in another thread, and in the main thread, you can g_main_loop_run to block the main window and make the file selection dialog modally.
But when I write my code, I cannot block the main window. It seems that calling g_main_loop_run function would also accept and handle signals from the main window, making the main window still active.
So can anyone tell me how you make your Windows style file selection dialog modally (preventing the main window from active) ?
Bruce Cheng --