mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:10:36 +00:00
oleview: Added base TypeLib Viewer menu functionality.
This commit is contained in:
parent
49c779f06f
commit
b3e9a3ba9f
|
@ -83,7 +83,7 @@ IDM_TYPELIB MENU
|
|||
MENUITEM "&Group by type kind", IDM_GROUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Toolbar", IDM_TOOLBAR
|
||||
MENUITEM "&Status Bar", IDM_STATUSBAR
|
||||
MENUITEM "&Status Bar", IDM_STATUSBAR,CHECKED
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -77,6 +77,25 @@ void TypeLibResizeChild(void)
|
|||
client.right, client.bottom-stat.bottom, TRUE);
|
||||
}
|
||||
|
||||
void TypeLibMenuCommand(WPARAM wParam, HWND hWnd)
|
||||
{
|
||||
BOOL vis;
|
||||
|
||||
switch(wParam)
|
||||
{
|
||||
case IDM_STATUSBAR:
|
||||
vis = IsWindowVisible(typelib.hStatusBar);
|
||||
ShowWindow(typelib.hStatusBar, vis ? SW_HIDE : SW_SHOW);
|
||||
CheckMenuItem(GetMenu(hWnd), LOWORD(wParam),
|
||||
vis ? MF_UNCHECKED : MF_CHECKED);
|
||||
TypeLibResizeChild();
|
||||
break;
|
||||
case IDM_CLOSE:
|
||||
DestroyWindow(hWnd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateTypeLibStatusBar(int itemID)
|
||||
{
|
||||
WCHAR info[MAX_LOAD_STRING];
|
||||
|
@ -109,6 +128,8 @@ LRESULT CALLBACK TypeLibProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
SetFocus(typelib.hTree);
|
||||
break;
|
||||
}
|
||||
case WM_COMMAND:
|
||||
TypeLibMenuCommand(LOWORD(wParam), hWnd);
|
||||
case WM_MENUSELECT:
|
||||
UpdateTypeLibStatusBar(LOWORD(wParam));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue