RT,谢谢

解决方案 »

  1.   

    SendMessage()直接派送不要排队(消息对列),PostMessage()是寄送,寄人篱下,得听人家的,得排队...
    FindWindow ()The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.The EnumWindows function enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE. 
      

  2.   

    1 发完等着消息处理后返回,往下运行
    2 发完消息立刻往下运行3 可以通过窗口名返回某个窗口的HWND句柄
    4 枚举所有窗口,每枚举到一个窗口,调用一次回调函数