主线程忙时,不会收到WM_DEVICECHANGE通知 [英] WM_DEVICECHANGE notification is not recieved when main thread is busy

查看:68
本文介绍了主线程忙时,不会收到WM_DEVICECHANGE通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的应用程序中处理了WM_DEVICECHANGE通知

I have handled WM_DEVICECHANGE notification in my App

当插入/删除DVD时,通知已成功收到。

When DVD is inserted/removed notifications are successfully recieved.

假设我的主要内容弹出光盘时线程正忙。然后没有收到WM_DEVICECHANGE通知。

Suppose my main thread is busy while i eject the disc. Then WM_DEVICECHANGE notification is not recieved.

任何想法??

推荐答案

>假设我的弹出光盘时主线程正忙。然后没有收到WM_DEVICECHANGE通知。

>Suppose my main thread is busy while i eject the disc. Then WM_DEVICECHANGE notification is not recieved.

当它不再忙时你没有收到它吗?

Do you not receive it when it's no longer busy?

把繁忙的工作放在工作线程中离开您的UI线程响应。

Put the busy work in a work thread to leave your UI thread responsive.

Dave


这篇关于主线程忙时,不会收到WM_DEVICECHANGE通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆