mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 05:34:15 -04:00
[ui] add a timer on the status bar
* also ensure that the user sees a report in case too many bad blocks were found * also changed bad blocks threshold to 256
This commit is contained in:
parent
b006e6a837
commit
4ce6a1f0f1
6 changed files with 65 additions and 18 deletions
19
src/stdlg.c
19
src/stdlg.c
|
@ -338,6 +338,25 @@ void CreateBoldFont(HDC dc) {
|
|||
hBoldFont = CreateFontIndirect(&lf);
|
||||
}
|
||||
|
||||
/*
|
||||
* Create the application status bar
|
||||
*/
|
||||
void CreateStatusBar(void)
|
||||
{
|
||||
RECT rect;
|
||||
int edge[2];
|
||||
|
||||
// Create the status bar.
|
||||
hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE,
|
||||
0, 0, 0, 0, hMainDialog, (HMENU)IDC_STATUS, hMainInstance, NULL);
|
||||
|
||||
// Create 2 status areas
|
||||
GetClientRect(hMainDialog, &rect);
|
||||
edge[0] = rect.right - (int)(58.0f*fScale);
|
||||
edge[1] = rect.right;
|
||||
SendMessage(hStatus, SB_SETPARTS, (WPARAM) 2, (LPARAM)&edge);
|
||||
}
|
||||
|
||||
/*
|
||||
* Center a dialog with regards to the main application Window or the desktop
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue