mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 05:41:23 +00:00
explorer: minor code cleanup
svn path=/trunk/; revision=24145
This commit is contained in:
parent
fcfeb83217
commit
30f438bb7b
2 changed files with 8 additions and 3 deletions
|
@ -94,10 +94,10 @@ struct Pane : public SubclassedWindow
|
||||||
|
|
||||||
int insert_entries(Entry* dir, int idx=-1);
|
int insert_entries(Entry* dir, int idx=-1);
|
||||||
BOOL command(UINT cmd);
|
BOOL command(UINT cmd);
|
||||||
int Notify(int id, NMHDR* pnmh);
|
virtual int Notify(int id, NMHDR* pnmh);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam);
|
virtual LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam);
|
||||||
|
|
||||||
void calc_width(LPDRAWITEMSTRUCT dis, int col, LPCTSTR str);
|
void calc_width(LPDRAWITEMSTRUCT dis, int col, LPCTSTR str);
|
||||||
void calc_tabbed_width(LPDRAWITEMSTRUCT dis, int col, LPCTSTR str);
|
void calc_tabbed_width(LPDRAWITEMSTRUCT dis, int col, LPCTSTR str);
|
||||||
|
|
|
@ -129,6 +129,8 @@ Window* Window::create_mdi_child(const ChildWndInfo& info, const MDICREATESTRUCT
|
||||||
|
|
||||||
HWND hwnd = (HWND) SendMessage(info._hmdiclient, WM_MDICREATE, 0, (LPARAM)&mcs);
|
HWND hwnd = (HWND) SendMessage(info._hmdiclient, WM_MDICREATE, 0, (LPARAM)&mcs);
|
||||||
|
|
||||||
|
// end hook in case it's not already done
|
||||||
|
if (s_hcbtHook)
|
||||||
UnhookWindowsHookEx(s_hcbtHook);
|
UnhookWindowsHookEx(s_hcbtHook);
|
||||||
|
|
||||||
Window* child = get_window(hwnd);
|
Window* child = get_window(hwnd);
|
||||||
|
@ -143,6 +145,9 @@ Window* Window::create_mdi_child(const ChildWndInfo& info, const MDICREATESTRUCT
|
||||||
LRESULT CALLBACK Window::MDICBTHookProc(int code, WPARAM wparam, LPARAM lparam)
|
LRESULT CALLBACK Window::MDICBTHookProc(int code, WPARAM wparam, LPARAM lparam)
|
||||||
{
|
{
|
||||||
if (code == HCBT_CREATEWND) {
|
if (code == HCBT_CREATEWND) {
|
||||||
|
UnhookWindowsHookEx(s_hcbtHook); // use the hook only for the first created window
|
||||||
|
s_hcbtHook = 0;
|
||||||
|
|
||||||
HWND hwnd = (HWND)wparam;
|
HWND hwnd = (HWND)wparam;
|
||||||
|
|
||||||
// create Window controller and associate it with the window handle
|
// create Window controller and associate it with the window handle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue