Home > Software engineering >  According to an id, judge whether has the id control exist?
According to an id, judge whether has the id control exist?

Time:01-26

I remember as if can use a function or CWnd class, determine whether what is empty, can't remember

CodePudding user response:

GetDlgItem

 
The CWnd * pCtrl=GetDlgItem (uIDC);
If (pCtrl & amp; & PCtrl - & gt; M_hWnd)
{
.
}



  • Related