summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-07-17 11:21:47 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-07-17 11:21:47 +0000
commite96a3f99bdd33c5bbf2a59ba586bad158a159193 (patch)
tree1feb6246aeeb326ed5022c748ef48b27e49d0020 /crashrep
parent44e44a5920a67189f0f27fa3b6b4c84839db4038 (diff)
INTEGRATION: CWS crashreprc3 (1.3.8); FILE MERGED
2003/07/17 11:23:50 ssa 1.3.8.1: #i16748# dont set any font on CJK systems, Win98 cannot substitute
Diffstat (limited to 'crashrep')
-rwxr-xr-xcrashrep/source/win32/soreport.cpp34
1 files changed, 32 insertions, 2 deletions
diff --git a/crashrep/source/win32/soreport.cpp b/crashrep/source/win32/soreport.cpp
index a67fefe6eeac..eb52db154f8f 100755
--- a/crashrep/source/win32/soreport.cpp
+++ b/crashrep/source/win32/soreport.cpp
@@ -644,6 +644,28 @@ BOOL CALLBACK GrowChildWindows(
return TRUE;
}
+/*
+BOOL CALLBACK EnumChildProc(HWND hwndChild, LPARAM lParam)
+{
+ HFONT aFont = *((HFONT*) lParam);
+ HDC hDC = GetDC( hwndChild );
+ SelectObject( hDC, aFont );
+ ReleaseDC( hwndChild, hDC );
+ return TRUE;
+}
+
+void ApplySystemFont( HWND hwndDlg )
+{
+ NONCLIENTMETRICSA aNonClientMetrics;
+ aNonClientMetrics.cbSize = sizeof( aNonClientMetrics );
+ if ( SystemParametersInfoA( SPI_GETNONCLIENTMETRICS, sizeof( aNonClientMetrics ), &aNonClientMetrics, 0 ) )
+ {
+ HFONT aSysFont = CreateFontIndirectA( &aNonClientMetrics.lfMessageFont );
+ EnumChildWindows(hwndDlg, EnumChildProc, (LPARAM) &aSysFont);
+ }
+}
+*/
+
BOOL CALLBACK PreviewDialogProc(
HWND hwndDlg,
UINT uMsg,
@@ -827,7 +849,6 @@ BOOL CALLBACK OptionsDialogProc(
{
case WM_INITDIALOG:
{
-
TCHAR szBuffer[1024] = TEXT("");
HINSTANCE hInstance = (HINSTANCE)GetWindowLong( hwndDlg, GWL_HINSTANCE );
HWND hwndParent = (HWND)GetWindowLong( hwndDlg, GWL_HWNDPARENT );
@@ -932,6 +953,9 @@ void UpdateReportDialogControls( HWND hwndDlg )
EnableWindow(
GetDlgItem(hwndDlg, IDC_EDIT_EMAIL),
Button_GetCheck(GetDlgItem(hwndDlg, IDC_ALLOW_CONTACT)) & BST_CHECKED ? TRUE : FALSE );
+ EnableWindow(
+ GetDlgItem(hwndDlg, IDC_LABEL_EMAIL),
+ Button_GetCheck(GetDlgItem(hwndDlg, IDC_ALLOW_CONTACT)) & BST_CHECKED ? TRUE : FALSE );
}
//***************************************************************************
@@ -947,7 +971,7 @@ BOOL CALLBACK ReportDialogProc(
{
case WM_INITDIALOG:
{
- CrashReportParams *pParams = (CrashReportParams*)GetWindowLong( GetParent(hwndDlg), GWL_USERDATA );
+ CrashReportParams *pParams = (CrashReportParams*)GetWindowLong( GetParent(hwndDlg), GWL_USERDATA );
HINSTANCE hInstance = (HINSTANCE)GetWindowLong(hwndDlg, GWL_HINSTANCE );
TCHAR szBuffer[FORMATBUFSIZE];
@@ -1009,6 +1033,12 @@ BOOL CALLBACK ReportDialogProc(
ShowWindow( GetDlgItem(GetParent(hwndDlg),IDFINISH), TRUE );
ShowWindow( GetDlgItem(GetParent(hwndDlg),IDNEXT), FALSE );
+ /*
+ SetWindowLong( GetDlgItem(GetParent(hwndDlg),IDFINISH), GWL_STYLE,
+ GetWindowLong( GetDlgItem(GetParent(hwndDlg),IDFINISH), GWL_STYLE) | BS_DEFPUSHBUTTON );
+ SetWindowLong( GetDlgItem(GetParent(hwndDlg),IDBACK), GWL_STYLE,
+ GetWindowLong( GetDlgItem(GetParent(hwndDlg),IDBACK), GWL_STYLE) &~ BS_DEFPUSHBUTTON );
+ */
SetFocus( GetDlgItem(hwndDlg,IDC_EDIT_TITLE) );
}
break;