From 634916230311eed9c6969aa516f4b9601438f9d3 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 14 Dec 2014 18:02:56 +0100 Subject: Windows: display a wait dialog during the lengthy opening of a volume. There is still a freeze in the GUI even though the call to DeviceIoControl is done in a separate thread which can't be explained. Maybe if we had an asynchronous Device Driver call, things would better. --- src/Common/Common.rc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/Common/Common.rc') diff --git a/src/Common/Common.rc b/src/Common/Common.rc index 39f6f7a7..13b9f973 100644 --- a/src/Common/Common.rc +++ b/src/Common/Common.rc @@ -307,6 +307,14 @@ BEGIN LTEXT "Please wait. This process may take a long time...",IDT_STATIC_MODELESS_WAIT_DLG_INFO,9,8,274,9 END +IDD_STATIC_MODAL_WAIT_DLG DIALOGEX 0, 0, 292, 42 +STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION +CAPTION "VeraCrypt" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + CTEXT "Please wait. This process may take a long time...",IDT_STATIC_MODELESS_WAIT_DLG_INFO,9,11,274,9 +END + ///////////////////////////////////////////////////////////////////////////// // @@ -439,6 +447,14 @@ BEGIN TOPMARGIN, 7 BOTTOMMARGIN, 35 END + + IDD_STATIC_MODAL_WAIT_DLG, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 285 + TOPMARGIN, 7 + BOTTOMMARGIN, 35 + END END #endif // APSTUDIO_INVOKED -- cgit v1.2.3