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
749e65cb
Commit
749e65cb
authored
Jun 22, 2006
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Added copy CLSID functionality.
parent
b2d91368
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
oleview.c
programs/oleview/oleview.c
+25
-0
No files found.
programs/oleview/oleview.c
View file @
749e65cb
...
...
@@ -49,6 +49,27 @@ INT_PTR CALLBACK CreateInstOnProc(HWND hDlgWnd, UINT uMsg, WPARAM wParam, LPARAM
return
FALSE
;
}
void
CopyClsid
(
HTREEITEM
item
)
{
TVITEM
tvi
;
memset
(
&
tvi
,
0
,
sizeof
(
TVITEM
));
tvi
.
hItem
=
item
;
tvi
.
cchTextMax
=
MAX_LOAD_STRING
;
SendMessage
(
globals
.
hTree
,
TVM_GETITEM
,
0
,
(
LPARAM
)
&
tvi
);
if
(
OpenClipboard
(
globals
.
hMainWnd
)
&&
EmptyClipboard
()
&&
tvi
.
lParam
)
{
HANDLE
hClipData
=
GlobalAlloc
(
GHND
,
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]));
LPVOID
pLoc
=
GlobalLock
(
hClipData
);
lstrcpyW
(
pLoc
,
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
);
GlobalUnlock
(
hClipData
);
hClipData
=
SetClipboardData
(
CF_UNICODETEXT
,
hClipData
);
CloseClipboard
();
}
}
void
ResizeChild
(
void
)
{
RECT
client
,
stat
,
tool
;
...
...
@@ -149,6 +170,10 @@ int MenuCommand(WPARAM wParam, HWND hWnd)
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]));
ShellAbout
(
hWnd
,
wszAbout
,
wszAboutVer
,
NULL
);
break
;
case
IDM_COPYCLSID
:
hSelect
=
TreeView_GetSelection
(
globals
.
hTree
);
CopyClsid
(
hSelect
);
break
;
case
IDM_CREATEINST
:
hSelect
=
TreeView_GetSelection
(
globals
.
hTree
);
CreateInst
(
hSelect
,
NULL
);
...
...
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