Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
49c779f0
Commit
49c779f0
authored
Jun 30, 2006
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Added status bar to TypeLib Viewer.
parent
03c5387f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
3 deletions
+44
-3
En.rc
programs/oleview/En.rc
+4
-0
main.h
programs/oleview/main.h
+1
-0
typelib.c
programs/oleview/typelib.c
+39
-3
No files found.
programs/oleview/En.rc
View file @
49c779f0
...
...
@@ -117,6 +117,10 @@ STRINGTABLE
IDM_REFRESH, "Refresh all lists"
IDM_ABOUT, "Display program information, version number and copyright"
IDM_SAVEAS, "Save as an .IDL or .H file"
IDM_CLOSE, "Close window"
IDM_GROUP, "Group typeinfos by kind"
IDS_TREE_OC, "ObjectClasses"
IDS_TREE_GBCC, "Grouped by Component Category"
IDS_TREE_O1O, "OLE 1.0 Objects"
...
...
programs/oleview/main.h
View file @
49c779f0
...
...
@@ -107,6 +107,7 @@ typedef struct
HWND
hPaneWnd
;
HWND
hTree
;
HWND
hEdit
;
HWND
hStatusBar
;
}
TYPELIB
;
extern
GLOBALS
globals
;
...
...
programs/oleview/typelib.c
View file @
49c779f0
...
...
@@ -62,6 +62,31 @@ void PopulateTree(void)
ITypeLib_Release
(
pTypeLib
);
}
void
TypeLibResizeChild
(
void
)
{
RECT
client
,
stat
;
MoveWindow
(
typelib
.
hStatusBar
,
0
,
0
,
0
,
0
,
TRUE
);
if
(
IsWindowVisible
(
typelib
.
hStatusBar
))
GetClientRect
(
typelib
.
hStatusBar
,
&
stat
);
else
stat
.
bottom
=
0
;
GetClientRect
(
globals
.
hTypeLibWnd
,
&
client
);
MoveWindow
(
typelib
.
hPaneWnd
,
0
,
0
,
client
.
right
,
client
.
bottom
-
stat
.
bottom
,
TRUE
);
}
void
UpdateTypeLibStatusBar
(
int
itemID
)
{
WCHAR
info
[
MAX_LOAD_STRING
];
if
(
!
LoadString
(
globals
.
hMainInst
,
itemID
,
info
,
sizeof
(
WCHAR
[
MAX_LOAD_STRING
])))
LoadString
(
globals
.
hMainInst
,
IDS_READY
,
info
,
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]));
SendMessage
(
typelib
.
hStatusBar
,
SB_SETTEXT
,
0
,
(
LPARAM
)
info
);
}
LRESULT
CALLBACK
TypeLibProc
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
...
...
@@ -81,11 +106,18 @@ LRESULT CALLBACK TypeLibProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetRight
(
typelib
.
hPaneWnd
,
typelib
.
hEdit
);
PopulateTree
();
SetFocus
(
typelib
.
hTree
);
break
;
}
case
WM_MENUSELECT
:
UpdateTypeLibStatusBar
(
LOWORD
(
wParam
));
break
;
case
WM_SETFOCUS
:
SetFocus
(
typelib
.
hTree
);
break
;
case
WM_SIZE
:
MoveWindow
(
typelib
.
hPaneWnd
,
0
,
0
,
LOWORD
(
lParam
),
HIWORD
(
lParam
),
TRUE
);
if
(
wParam
==
SIZE_MINIMIZED
)
break
;
TypeLibResizeChild
(
);
break
;
case
WM_DESTROY
:
break
;
...
...
@@ -119,7 +151,11 @@ BOOL CreateTypeLibWindow(HINSTANCE hInst)
globals
.
hTypeLibWnd
=
CreateWindow
(
wszTypeLib
,
wszTitle
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
800
,
600
,
NULL
,
NULL
,
hInst
,
NULL
);
if
(
!
globals
.
hTypeLibWnd
)
return
FALSE
;
typelib
.
hStatusBar
=
CreateStatusWindow
(
WS_VISIBLE
|
WS_CHILD
,
(
LPWSTR
)
wszTitle
,
globals
.
hTypeLibWnd
,
0
);
TypeLibResizeChild
();
return
TRUE
;
}
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