用IsWindow还是用FromHandle?
我想知道一个模式(非模式)对话框是否已打开,我有它的实例,是用IsWindow(m_ApplyPopedomDlg.m_hWnd)还是用FromHandle(m_ApplyPopedomDlg.m_hWnd)
MSDN中说FromHandle是:
Returns a pointer to a CWnd object when given a handle to a window. If a CWnd object is not attached to the handle, a temporary CWnd object is created and attached.
似乎是无法判断对话框是否已打开,可我在现实中用是可以,不知道是否是巧合。