zoukankan      html  css  js  c++  java
  • 遍历子窗口

    void SuperbikeControl::GetChildWindow(CWnd *cwnd)
    {
        CWnd *wnd = cwnd->GetWindow (GW_CHILD);
        if (wnd != NULL)
        {
            wnd->PostMessageW (WM_KEYDOWN, VK_ESCAPE, 0);
            Sleep(50);
            wnd->PostMessageW (WM_KEYUP, VK_ESCAPE, 0);
            PlaySound(_T("sound\\bell.wav"), NULL, SND_FILENAME | SND_ASYNC);
            Sleep(1000);
            GetChildWindow(wnd);
        }
        else
        {
            wnd = cwnd->GetWindow (GW_HWNDNEXT);
            if (wnd != NULL)
            {
                wnd->PostMessageW (WM_KEYDOWN, VK_ESCAPE, 0);
                Sleep(50);
                wnd->PostMessageW (WM_KEYUP, VK_ESCAPE, 0);
                PlaySound(_T("sound\\bell.wav"), NULL, SND_FILENAME | SND_ASYNC);
                Sleep(1000);
                GetChildWindow(wnd);
            }
        }

    }

  • 相关阅读:
    分答是什么?
    判定表
    总结
    周结
    第五周周结
    周结
    一周总结(18周)
    一周总结(17周)
    一周总结(16周)
    一周总结(15周)
  • 原文地址:https://www.cnblogs.com/mfryf/p/2351029.html
Copyright © 2011-2022 走看看