From 7c6f53a41df0b6f016d7aacdaa02dd4d21274eb8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 3 Nov 2009 03:32:14 +0000 Subject: [PATCH] fix weird black control backcolor in replay dialog and also shrink the dynamic labels so they dont overlap each other --- src/drivers/win/replay.cpp | 4 ++-- src/drivers/win/res.rc | 24 +++++++++++------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/drivers/win/replay.cpp b/src/drivers/win/replay.cpp index ca7b2ea9..219fd909 100644 --- a/src/drivers/win/replay.cpp +++ b/src/drivers/win/replay.cpp @@ -716,8 +716,8 @@ BOOL CALLBACK ReplayDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP SetTextColor(hdcStatic, RGB(0,0,0)); // use black color for a match (or no comparison) else SetTextColor(hdcStatic, RGB(255,0,0)); // use red for a mismatch - SetBkMode(hdcStatic, TRANSPARENT); - return (LONG)GetStockObject(NULL_BRUSH); + + return FALSE; } else return FALSE; diff --git a/src/drivers/win/res.rc b/src/drivers/win/res.rc index 2eb0d5fb..6db48a23 100644 --- a/src/drivers/win/res.rc +++ b/src/drivers/win/res.rc @@ -7,8 +7,7 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" - +#include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -1246,10 +1245,6 @@ BEGIN RTEXT "Length:",64397,10,70,59,8 RTEXT "Frames:",65496,10,78,59,8 RTEXT "Record Count:",65495,10,86,59,8 - EDITTEXT IDC_LABEL_LENGTH,76,70,59,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_FRAMES,76,78,59,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_UNDOCOUNT,76,86,59,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - CONTROL "Open &Read-Only",IDC_CHECK_READONLY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,36,69,10 RTEXT "ROM Used:",65493,10,102,59,8 RTEXT "ROM Checksum:",65492,10,110,59,8 RTEXT "Recorded From:",65491,10,94,59,8 @@ -1258,12 +1253,16 @@ BEGIN CONTROL "Pause movie at frame",IDC_CHECK_STOPMOVIE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,49,83,10 EDITTEXT IDC_EDIT_STOPFRAME,103,47,35,12,ES_AUTOHSCROLL | ES_NUMBER GROUPBOX "Parameters",IDC_STATIC,13,25,278,40 - EDITTEXT IDC_LABEL_RECORDEDFROM,76,94,123,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_ROMUSED,76,102,187,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_ROMCHECKSUM,76,110,155,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_CURRCHECKSUM,76,118,155,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP - EDITTEXT IDC_LABEL_EMULATORUSED,76,126,155,12,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP PUSHBUTTON "Metadata...",IDC_BUTTON_METADATA,239,71,50,14 + EDITTEXT IDC_LABEL_EMULATORUSED,76,126,155,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_CURRCHECKSUM,76,118,155,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_ROMCHECKSUM,76,110,155,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_ROMUSED,76,102,187,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_RECORDEDFROM,76,94,123,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + CONTROL "Open &Read-Only",IDC_CHECK_READONLY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,19,36,69,10 + EDITTEXT IDC_LABEL_UNDOCOUNT,76,86,59,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_FRAMES,76,78,59,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP + EDITTEXT IDC_LABEL_LENGTH,76,70,59,8,ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP END TASEDIT DIALOGEX 0, 0, 465, 382 @@ -1922,8 +1921,7 @@ IDB_TE_ARROW BITMAP "res/te_arrow.bmp" // // Generated from the TEXTINCLUDE 3 resource. // - - + ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED