externals.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int explorer_main (HINSTANCE hinstance, LPTSTR lpCmdLine, int cmdshow)
void explorer_show_frame (int cmdshow, LPTSTR lpCmdLine=NULL)
void explorer_about (HWND hwndParent)
BOOL IsAnyDesktopRunning ()
void ShowExitWindowsDialog (HWND hwndOwner)

Function Documentation

void explorer_about ( HWND  hwndParent )

Definition at line 927 of file explorer.cpp.

References Dialog::DoModal(), IDD_ABOUT_EXPLORER, and WINDOW_CREATOR.

Referenced by MainFrameBase::Command(), DesktopBar::Command(), and DesktopShellView::DoDesktopContextMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

int explorer_main ( HINSTANCE  hinstance,
LPTSTR  lpCmdLine,
int  cmdshow 

Definition at line 954 of file explorer.cpp.

References CONTEXT, explorer_show_frame(), HandleException(), and Window::MessageLoop().

Referenced by _tWinMain().


     // initialize Common Controls library
    CommonControlInit usingCmnCtrl;

    try {
    } catch(COMException& e) {
        HandleException(e, GetDesktopWindow());
        return -1;

#ifndef ROSSHELL
    if (cmdShow != SW_HIDE) {
/*  // don't maximize if being called from the ROS desktop
        if (cmdShow == SW_SHOWNORMAL)
                ///@todo read window placement from registry
            cmdShow = SW_MAXIMIZE;

        explorer_show_frame(cmdShow, lpCmdLine);

    return Window::MessageLoop();

Here is the call graph for this function:

Here is the caller graph for this function:

void explorer_show_frame ( int  cmdshow,
LPTSTR  lpCmdLine = NULL 

Definition at line 711 of file explorer.cpp.

References ExplorerCmd::_cmdShow, ExplorerGlobals::_hMainWnd, ExplorerGlobals::_hwndDesktop, ExplorerCmd::_mdi, ExplorerGlobals::_prescan_nodes, MainFrameBase::Create(), Dialog::DoModal(), ExplorerGlobals::get_cfg(), IDD_MDI_SDI, ExplorerCmd::ParseCmdLine(), and WINDOW_CREATOR.

Referenced by StartMenuHandler::Command(), DesktopBar::Command(), explorer_main(), DesktopBar::ProcessHotKey(), and DesktopWindow::WndProc().

    ExplorerCmd cmd;

    if (g_Globals._hMainWnd) {
        if (IsIconic(g_Globals._hMainWnd))
            ShowWindow(g_Globals._hMainWnd, SW_RESTORE);


    g_Globals._prescan_nodes = false;

    XMLPos explorer_options = g_Globals.get_cfg("general/explorer");
    XS_String mdiStr = XMLString(explorer_options, "mdi");

     // If there isn't yet the "mdi" setting in the configuration, display the MDI/SDI dialog.
    if (mdiStr.empty())
        Dialog::DoModal(IDD_MDI_SDI, WINDOW_CREATOR(MdiSdiDlg), g_Globals._hwndDesktop);

     // Now read the MDI attribute again and interpret it as boolean value.
    cmd._mdi = XMLBool(explorer_options, "mdi", true);

    cmd._cmdShow = cmdShow;

     // parse command line options, which may overwrite the MDI flag
    if (lpCmdLine)

     // create main window

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL IsAnyDesktopRunning (  )

Definition at line 246 of file desktop.cpp.

References HWND, and TEXT.

Referenced by _tWinMain().

    HINSTANCE hUser32 = GetModuleHandle(TEXT("user32"));

    SetShellWindow = (BOOL(WINAPI*)(HWND)) GetProcAddress(hUser32, "SetShellWindow");
    SetShellWindowEx = (BOOL(WINAPI*)(HWND,HWND)) GetProcAddress(hUser32, "SetShellWindowEx");

    return GetShellWindow() != 0;

Here is the caller graph for this function:

void ShowExitWindowsDialog ( HWND  hwndOwner )

Definition at line 2140 of file startmenu.cpp.

References IDS_TITLE, and TEXT.

Referenced by StartMenuHandler::Command(), DesktopBar::WndProc(), and DesktopWindow::WndProc().

    static DynamicFct<EXITWINDOWSDLG> ExitWindowsDialog(TEXT("SHELL32"), 60);

    if (ExitWindowsDialog)
        MessageBox(hwndOwner, TEXT("ExitWindowsDialog() not yet implemented in SHELL32"), ResString(IDS_TITLE), MB_OK);

Here is the caller graph for this function:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage