Posts

Showing posts from December 2, 2018

In the dialog how to destroy a dynamically created control when other child control's got focus?

Image
up vote 0 down vote favorite I have a MFC dialog based application, when click on CButton I am dynamically creating and displaying a list box. If I click on other child controls in the dialog or click on dialog's client area I have to destroy this list box. But I dont know how to get notification in the dialog when click on dialog's client area or click on child controls other than this list box in the dialog? my code snippet void CbtntestDlg::OnBnClickedButton1() { CRect rcBtn; m_ctrlbtn.GetWindowRect(rcBtn); int w = rcBtn.Width(); int h = rcBtn.Height(); POINT p; p.x=rcBtn.left; p.y=rcBtn.top; ::ScreenToClient(this->m_hWnd,&p); /*CRect r(rcBtn.right-100,rcBtn.bottom, rcBtn.right, rcBtn.bottom+30);*/ CRect r(p.x,p.y+h,p.x+100,p.y+h+150); //CRect rect(10

Hornbill

Image
For other uses, see Hornbill (disambiguation). Hornbills Temporal range: Late Miocene to present Malabar grey hornbill Ocyceros griseus Scientific classification Kingdom: Animalia Phylum: Chordata Class: Aves Order: Bucerotiformes Family: Bucerotidae Rafinesque, 1815 Genera 14, see text The hornbills ( Bucerotidae ) are a family of bird found in tropical and subtropical Africa, Asia and Melanesia. They are characterized by a long, down-curved bill which is frequently brightly colored and sometimes has a casque on the upper mandible. Both the common English and the scientific name of the family refer to the shape of the bill, "buceros" being "cow horn" in Greek. Hornbills have a two-lobed kidney. They are the only birds in which the first and second neck vertebrae (the atlas and axis respectively) are fused together; this probably provides a more stable platform for carrying the bill. [1] The family is omnivoro