Demian Panello wrote:
rcControl.left = long(rcClient.Width() * 0.05); rcControl.top = long(rcClient.Height() * 0.10); rcControl.right = rcControl.left + long(rcClient.Width() * 0.90) ; rcControl.bottom = rcControl.top +long(rcClient.Height() * 0.40); m_cboParam.Create(CBS_DROPDOWNLIST|LBS_STANDARD|CBS_SORT|WS_CHILD|WS_VISIBLE, rcControl, this, IDC_PARAM);
RECT given while creating combo box should mention that. ie. in this case increase rcControl.bottom value, it will give you desired effect.
Demian Panello wrote:
But how could I set that at runtime??
It is easy ,too. Isn't it?
Prasad Notifier using ATL | Operator new[],delete[][^]