如题。我是初学者,不知道50分够不够啊?

解决方案 »

  1.   

    它的类名就是Button,它的父窗口类名是Shell_TrayWnd,用spy++查一下就知道了。
      

  2.   

    用spy++看看,那就是个button阿。
      

  3.   

    andy_lau(天行键,君子当自强不息!)大哥此话什么意思啊?
    指点一二小弟我啊!?!?!?!?!
      

  4.   

    HWND hParent = ::FindWondow("Shell_TrayWnd",NULL);
    HWND hStar = ::FindWindowEx(hParent,NULL,"Button",NULL);
      

  5.   

    我看过别人做过这样的程序,把开始给灰掉,DISABLE ,这样系统操做就不能做了在工控中很有用,我也试过,但是没有深入不知 FindWindow 可以吗?我有个建议,用窗口枚举来做,先枚举主窗口,在每个主窗口中再枚举子窗口,直到找到 开始这个按钮
    不知两个方法哪个好一点
      

  6.   

    sorry好像应该这样:HWND hDesktop = ::GetDesktopWondow();
    HWND hShell_TrayWnd = ::FindWindowEx(hDesktop,NULL,"Shell_TrayWnd",NULL);
    HWND hStar = ::FindWindowEx(hShell_TrayWnd,NULL,"Button",NULL);
      

  7.   

    是不是我说的不够清楚啊?标题不是说了吗,不用FindWindowEx这个函数,因为在WinCE下没有啊。我要在WinCE下用。不过,还是谢谢大家了。
    能不能有其他方法啊?比如:
     papaya_stone(^_^)shentong(^_^)说的那样,先用GetDesktopWindow()找到桌面,再用除了FindWindowEx()的方法,找到它下面的“开始”啊?
    有的人说用spy++,可是能找到WinCE下的“开始”句柄吗????
    如果不行,卧倒^_^
      

  8.   

    Saimen(单身情人) 说的是。
    我在VC下,试过,可以的。可是在eVC里没有FindWindowEx这个函数啊。
    到底要怎么样呢???
      

  9.   

    类名就是Button用GetWindow()写个递归函数也可以找到的
      

  10.   

    在 winCE 下就用这个吧
    EnumWindowsProc
    The EnumWindowsProc function is an application-defined callback function used with the EnumWindows orEnumDesktopWindows function. It receives top-level window handles. The WNDENUMPROC type defines a pointer to this callback function. EnumWindowsProc is a placeholder for the application-defined function name. -------------------------------------------------
    BOOL CALLBACK EnumWindowsProc(
      HWND hwnd,      // handle to parent window
      LPARAM lParam   // application-defined value
    );
    -------------------------------------------------
     
    Parameters
    hwnd 
    Handle to a top-level window. 
    lParam 
    Specifies the application-defined value given in EnumWindows or EnumDesktopWindows. 
    Return Values
    To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE. Res
    An application must register this callback function by passing its address to EnumWindows or EnumDesktopWindows. QuickInfo
      Windows NT: Requires version 3.1 or later.
      Windows: Requires Windows 95 or later.
    -------------------------------------------------
      Windows CE: Requires version 1.0 or later.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      Header: Declared in winuser.h.
      Import Library: User-defined.See Also
    Windows Overview, Window Functions, EnumWindows,EnumDesktopWindows good luck