mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
"up" button
svn path=/branches/lean-explorer/; revision=8454
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -60,6 +60,7 @@ MainFrame::MainFrame(HWND hwnd)
|
||||
{0, 0, 0, BTNS_SEP, {0, 0}, 0, 0},
|
||||
{7, ID_BROWSE_BACK, TBSTATE_ENABLED, BTNS_BUTTON, {0, 0}, 0, 0},
|
||||
{8, ID_BROWSE_FORWARD, TBSTATE_ENABLED, BTNS_BUTTON, {0, 0}, 0, 0},
|
||||
{9, ID_BROWSE_UP, TBSTATE_ENABLED, BTNS_BUTTON, {0, 0}, 0, 0},
|
||||
};
|
||||
|
||||
_htoolbar = CreateToolbarEx(hwnd, WS_CHILD|WS_VISIBLE,
|
||||
@@ -316,6 +317,10 @@ int MainFrame::Command(int id, int code)
|
||||
{
|
||||
CONTEXT("MainFrame::Command()");
|
||||
|
||||
if (_shellBrowser.get())
|
||||
if (!_shellBrowser->Command(id, code))
|
||||
return 0;
|
||||
|
||||
switch(id) {
|
||||
case ID_FILE_EXIT:
|
||||
SendMessage(_hwnd, WM_CLOSE, 0, 0);
|
||||
|
||||
@@ -528,6 +528,25 @@ LRESULT ShellBrowserChild::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ShellBrowserChild::Command(int id, int code)
|
||||
{
|
||||
switch(id) {
|
||||
case ID_BROWSE_BACK:
|
||||
break;//@todo
|
||||
|
||||
case ID_BROWSE_FORWARD:
|
||||
break;//@todo
|
||||
|
||||
case ID_BROWSE_UP:
|
||||
break;//@todo
|
||||
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ShellBrowserChild::Notify(int id, NMHDR* pnmh)
|
||||
{
|
||||
switch(pnmh->code) {
|
||||
|
||||
@@ -119,6 +119,7 @@ protected:
|
||||
|
||||
public:
|
||||
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam);
|
||||
int Command(int id, int code);
|
||||
int Notify(int id, NMHDR* pnmh);
|
||||
|
||||
LRESULT Init(HWND hWndFrame);
|
||||
|
||||
Reference in New Issue
Block a user