太难了,大家一起帮帮忙吧,分数无所谓了……我要把编写的程序挂到我的电脑下面,或者资源管理器打开后,左边的文件夹下面,就是说把程序的窗口放在我的电脑里面,打开我的电脑的话是电脑里的文件以及文件夹在上面,我的窗口在下面,打开资源管理器是左边还是资源管理器的文件夹,右边上面是电脑里的文件以及文件夹,右边下面是程序的窗口。最好还能知道用户点的是哪个文件夹,然后我的那个程序窗口做出相应的变化。

解决方案 »

  1.   

    是够难的,感觉就算做出来了也不会很稳定(肯定有一堆钩子什么的),建议:1、做一个浮动窗口(始终浮在上面),监视打开的如果是我的电脑、资源管理器就显示自己。2、自己写一个Windows资源管理器(有很多例子,应该不难写),替换掉Windows自带的资源管理器。这样控制起来就随心所欲了。
      

  2.   

    试试Shell钩子
    WH_SHELL Installs a hook procedure that receives notifications useful to shell applications. For more information, see the ShellProc hook procedure. ShellProc
    The ShellProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The function receives notifications of shell events from the system. The HOOKPROC type defines a pointer to this callback function. ShellProc is a placeholder for the application-defined or library-defined function name. LRESULT CALLBACK ShellProc(
      int nCode,      // hook code
      WPARAM wParam,  // event-specific information
      LPARAM lParam   // event-specific information
    );
     
    Parameters
    nCode 
    Specifies the hook code. This parameter can be one of the following values. Value Meaning 
    HSHELL_ACCESSIBILITYSTATE Windows NT 5.0 and later: The accessibility state has changed.  
    HSHELL_ACTIVATESHELLWINDOW The shell should activate its main window. 
    HSHELL_GETMINRECT A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the window.  
    HSHELL_LANGUAGE Keyboard language was changed or a new keyboard layout was loaded. 
    HSHELL_REDRAW The title of a window in the task bar has been redrawn.  
    HSHELL_TASKMAN The user has selected the task list. A shell application that provides a task list should return TRUE to prevent Windows from starting its task list. 
    HSHELL_WINDOWACTIVATED The activation has changed to a different top-level, unowned window.  
    HSHELL_WINDOWCREATED A top-level, unowned window has been created. The window exists when the system calls a ShellProc function. 
    HSHELL_WINDOWDESTROYED A top-level, unowned window is about to be destroyed. The window still exists when the system calls a ShellProc function. 
    If nCode is less than zero, the hook procedure must pass the message to the CallNextHookEx function without further processing and should return the value returned by CallNextHookEx. wParam 
    The value depends on the value of the nCode parameter, as shown in the following table. nCode  wParam 
    HSHELL_ACCESSIBILITYSTATE Indicates which accessibility feature has changed state. This value is one of the following: ACCESS_FILTERKEYS, ACCESS_MOUSEKEYS, or ACCESS_STICKYKEYS.  
    HSHELL_GETMINRECT Handle to the minimized or maximized window. 
    HSHELL_LANGUAGE Handle to the window. 
    HSHELL_REDRAW Handle to the redrawn window. 
    HSHELL_WINDOWACTIVATED Handle to the activated window. 
    HSHELL_WINDOWCREATED Handle to the created window. 
    HSHELL_WINDOWDESTROYED Handle to the destroyed window. 
    lParam 
    The value depends on the value of the nCode parameter, as shown in the following table. nCode  lParam  
    HSHELL_GETMINRECT Pointer to aRECT structure.  
    HSHELL_LANGUAGE Handle to a keyboard layout.  
    HSHELL_REDRAW The value is TRUE if the window is flashing, or FALSE otherwise.  
    HSHELL_WINDOWACTIVATED The value is TRUE if the window is in full-screen mode, or FALSE otherwise.  
    Return Values
    The return value should be zero. Res
    Install this hook procedure by specifying the WH_SHELL hook type and the address of the hook procedure in a call to the SetWindowsHookEx function. QuickInfo
      Windows NT: Requires version 3.1 or later.
      Windows: Requires Windows 95 or later.
      Windows CE: Unsupported.
      Header: Declared in winuser.h.
      Import Library: User-defined.
      

  3.   

    vc的实现方法找到了,是Windows区对象(Bands)的创建与定制vc中实现见:http://www.westimpi.com.cn/school/win1.htmvb中如何实现?如何编制其中相关的dll?