From d22ce95a23b41272b64831fba97b1aa282a2a50f Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 28 Feb 2004 17:38:34 +0000 Subject: [PATCH] "up" button svn path=/branches/lean-explorer/; revision=8454 --- .../subsys/system/explorer/res/toolbar.bmp | Bin 1678 -> 1318 bytes .../system/explorer/shell/mainframe.cpp | 5 +++++ .../system/explorer/shell/shellbrowser.cpp | 19 ++++++++++++++++++ .../system/explorer/shell/shellbrowser.h | 1 + 4 files changed, 25 insertions(+) diff --git a/reactos/subsys/system/explorer/res/toolbar.bmp b/reactos/subsys/system/explorer/res/toolbar.bmp index 632b1ec6750950d9aecb0a43ab66d2685e362799..4eb424072642956b2277dae94ba12713b5cf6dae 100644 GIT binary patch delta 176 zcmeC>yVE$!u#-?I2HgG54D{g{BVH53oMgo#Dl3<~tVm=x3-8)Go?(7`o$xel>il7Hq(S z>TP^n5(!NrN0v#wzZ4TTlQbHsm>0j^=PXUmC2y^FVC#vfb2}RENBUvcWB8EbC zU8Bvbo314sAde|%MfFqH&xzR@q^GKp)`jb~A44+$Sp%@S9bBz6c{rIYVI%Am^{1Kl z8X*&%hiyw53S;A}e7>O(9Uuzw$tezn#X9R*mtGoC_!tu1E(6dO@ak>Mlb1zspj#$C)gyEzodPG=)_Command(id, code)) + return 0; + switch(id) { case ID_FILE_EXIT: SendMessage(_hwnd, WM_CLOSE, 0, 0); diff --git a/reactos/subsys/system/explorer/shell/shellbrowser.cpp b/reactos/subsys/system/explorer/shell/shellbrowser.cpp index 50ab729ed3e..d3b1e958aaf 100644 --- a/reactos/subsys/system/explorer/shell/shellbrowser.cpp +++ b/reactos/subsys/system/explorer/shell/shellbrowser.cpp @@ -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) { diff --git a/reactos/subsys/system/explorer/shell/shellbrowser.h b/reactos/subsys/system/explorer/shell/shellbrowser.h index 5b4875bdd12..0dd5cd0d2d7 100644 --- a/reactos/subsys/system/explorer/shell/shellbrowser.h +++ b/reactos/subsys/system/explorer/shell/shellbrowser.h @@ -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);