LRESULT ShellBrowserChild::Init() { CONTEXT("ShellBrowserChild::Init()"); ClientRect rect(_hwnd); const String& root_name = GetDesktopFolder().get_name(_create_info._root_shell_path, SHGDN_FORADDRESSBAR); _root._drive_type = DRIVE_UNKNOWN; lstrcpy(_root._volname, root_name); _root._fs_flags = 0; lstrcpy(_root._fs, TEXT("Desktop")); _root._entry = new ShellDirectory(GetDesktopFolder(), _create_info._root_shell_path, _hwnd); // -> set_curdir() _root._entry->read_directory(); if (_left_hwnd) { InitializeTree(); InitDragDrop(); } jump_to(_create_info._shell_path); return 0; }
void ShellBrowser::Init() { CONTEXT("ShellBrowser::Init()"); const String& root_name = GetDesktopFolder().get_name(_create_info._root_shell_path, SHGDN_FORADDRESSBAR); _root._drive_type = DRIVE_UNKNOWN; lstrcpy(_root._volname, root_name); _root._fs_flags = 0; lstrcpy(_root._fs, TEXT("Desktop")); _root._entry = new ShellDirectory(GetDesktopFolder(), _create_info._root_shell_path, _hwnd); _root._entry->read_directory(SCAN_DONT_ACCESS|SCAN_NO_FILESYSTEM); // avoid to handle desktop root folder as file system directory if (_left_hwnd) { InitializeTree(); InitDragDrop(); } jump_to(_create_info._shell_path); /* already filled by ShellDirectory constructor lstrcpy(_root._entry->_data.cFileName, TEXT("Desktop")); */ }
void SessionForm::InitWindow() { m_pRoot->AttachBubbledEvent(ui::kEventAll, nbase::Bind(&SessionForm::OnNotify, this, std::placeholders::_1)); m_pRoot->AttachBubbledEvent(ui::kEventClick, nbase::Bind(&SessionForm::OnClicked, this, std::placeholders::_1)); merge_list_ = static_cast<ListBox*>(FindControl(L"merge_list")); session_box_tab_ = static_cast<TabBox*>(FindControl(L"session_box_tab")); merge_list_->AttachSelect(nbase::Bind(&SessionForm::OnMergeItemSelected, this, std::placeholders::_1)); InitDragDrop(); }
DesktopShellView::DesktopShellView(HWND hwnd, IShellView* pShellView) : super(hwnd), _pShellView(pShellView) { _hwndListView = GetNextWindow(hwnd, GW_CHILD); // work around for Windows NT, Win 98, ... // Without this the desktop has mysteriously only a size of 800x600 pixels. ClientRect rect(hwnd); MoveWindow(_hwndListView, 0, 0, rect.right, rect.bottom, TRUE); // subclass background window new BackgroundWindow(_hwndListView); _icon_algo = 0; // default icon arrangement InitDragDrop(); }
void MainFrame::InitializeFrame(){ _frameManager.SetFrame(this); #ifdef __WXMSW_ _frameManager.SetFlags(_frameManager.GetFlags() ^ wxAUI_MGR_TRANSPARENT_DRAG); #else //workaround for bug //http://trac.wxwidgets.org/ticket/4841 _frameManager.SetFlags(wxAUI_MGR_ALLOW_FLOATING | wxAUI_MGR_NO_VENETIAN_BLINDS_FADE | wxAUI_MGR_RECTANGLE_HINT ); #endif CreateStatusBar(3); InitializeComponents(); InitializeMenus(); LoadInitialPerspective(); InitDragDrop(); }