المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to add a button in ClistCtrl?



C++ Programming
09-02-2009, 10:35 AM
Hi
i have an Extended ClistCtrl, in which i want to insert a button at the bottom right. i can able to create the button using the nelwo code ,
lButton=new CButton();
lButton->Create(_T("Select All & Next"), WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON |BS_MULTILINE, CRect(520,280,600,320), this, IDC_BUTTON1);
lButton->ShowWindow(SW_SHOWNORMAL);

but when i am scrolling the list control the button image also getting painted in various places and flickering . how to handle this?

Thanks
Gokul