Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a70ac0e9
Commit
a70ac0e9
authored
Jan 17, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Make the crash details dialog resizable.
parent
dcd5643f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
1 deletion
+52
-1
crashdlg.c
programs/winedbg/crashdlg.c
+51
-0
winedbg.rc
programs/winedbg/winedbg.rc
+1
-1
No files found.
programs/winedbg/crashdlg.c
View file @
a70ac0e9
...
...
@@ -261,12 +261,63 @@ static INT_PTR WINAPI crash_dlg_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
static
INT_PTR
WINAPI
details_dlg_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
static
const
WCHAR
openW
[]
=
{
'o'
,
'p'
,
'e'
,
'n'
,
0
};
static
POINT
orig_size
,
min_size
,
edit_size
,
text_pos
,
save_pos
,
close_pos
;
RECT
rect
;
switch
(
msg
)
{
case
WM_INITDIALOG
:
set_fixed_font
(
hwnd
,
IDC_CRASH_TXT
);
SetDlgItemTextA
(
hwnd
,
IDC_CRASH_TXT
,
crash_log
);
GetClientRect
(
hwnd
,
&
rect
);
orig_size
.
x
=
rect
.
right
;
orig_size
.
y
=
rect
.
bottom
;
GetWindowRect
(
hwnd
,
&
rect
);
min_size
.
x
=
rect
.
right
-
rect
.
left
;
min_size
.
y
=
rect
.
bottom
-
rect
.
top
;
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDOK
),
&
rect
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
rect
,
2
);
close_pos
.
x
=
rect
.
left
;
close_pos
.
y
=
rect
.
top
;
GetWindowRect
(
GetDlgItem
(
hwnd
,
ID_SAVEAS
),
&
rect
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
rect
,
2
);
save_pos
.
x
=
rect
.
left
;
save_pos
.
y
=
rect
.
top
;
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDC_STATIC_TXT2
),
&
rect
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
rect
,
2
);
text_pos
.
x
=
rect
.
left
;
text_pos
.
y
=
rect
.
top
;
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDC_CRASH_TXT
),
&
rect
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
rect
,
2
);
edit_size
.
x
=
rect
.
right
-
rect
.
left
;
edit_size
.
y
=
rect
.
bottom
-
rect
.
top
;
return
TRUE
;
case
WM_GETMINMAXINFO
:
((
MINMAXINFO
*
)
lparam
)
->
ptMinTrackSize
=
min_size
;
return
TRUE
;
case
WM_SIZE
:
if
(
wparam
==
SIZE_RESTORED
)
{
int
off_x
=
(
short
)
LOWORD
(
lparam
)
-
orig_size
.
x
;
int
off_y
=
(
short
)
HIWORD
(
lparam
)
-
orig_size
.
y
;
SetWindowPos
(
GetDlgItem
(
hwnd
,
IDOK
),
0
,
close_pos
.
x
+
off_x
,
close_pos
.
y
+
off_y
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hwnd
,
ID_SAVEAS
),
0
,
save_pos
.
x
+
off_x
,
save_pos
.
y
+
off_y
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hwnd
,
IDC_STATIC_TXT2
),
0
,
text_pos
.
x
,
text_pos
.
y
+
off_y
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SetWindowPos
(
GetDlgItem
(
hwnd
,
IDC_CRASH_TXT
),
0
,
0
,
0
,
edit_size
.
x
+
off_x
,
edit_size
.
y
+
off_y
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
return
TRUE
;
case
WM_NOTIFY
:
...
...
programs/winedbg/winedbg.rc
View file @
a70ac0e9
...
...
@@ -58,7 +58,7 @@ BEGIN
END
IDD_DETAILS_DLG DIALOGEX 100, 100, 300, 240
STYLE DS_SETFONT | DS_
MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
STYLE DS_SETFONT | DS_
FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Program Error Details"
FONT 8, "Tahoma"
BEGIN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment