Dear friend, Interesting challenge, i tried this out find if this solution suits u ! //////---- Start only during minimize & restore u have this problem, ///// 1.so get OnCaptureChanged event handler of u r window /// 2.Send message to window to focus u r dialog // / void CModallessDlg::OnCaptureChanged(CWnd *pWnd) { SendMessage (WM_SETFOCUS,0,0); CDialog::OnCaptureChanged(pWnd); } Muthu Ramji.Al.V Software Developer(VC++) Sify Limited muthu_ramji@sifycorp.com
M
muthuramji
@muthuramji
Posts
-
ListControl Problem -
ListCtrlDear friend, if u have 2 do in code then try this, 1. //-------- Start create a list control using dwstyle LVS_SINGLESEL CListCtrl* pmyListCtrl=new CListCtrl; pmyListCtrl->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT|LVS_SINGLESEL ,CRect(10,10,300,200), this, 1); //--------- 2.same can be done with visual design mode as i said earlier. Both in list box & list control v have that check box. Kindly check in property dialog box 3.if u want i will help with a demo program
-
ListCtrlIn design view select list control properties->styles->single selection check this box , u r job is done ! Muthu Ramji.Al.V Software developer(VC++) Sify Limited muthu_ramji@sifycorp.com