[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Run time control

I want to create ListBox at run time.It is createing successfully b'cause Create function returns successful results as well as if
I will use AddString for it it doesn't give any error.But that listbox
is not getting displayed.

CListBox m_list;
CRect rect(10,10,40,40);
m_list.Create(LBS_NOINTEGRALHEIGHT,rect,this,100);  
m_list.ShowWindow(WS_VISIBLE);
0
devayani
Asked:
devayani
1 Solution
 
SadhuCommented:
m_list.ShowWindow(SW_NORMAL);

0
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

Or else use

m_list.ShowWindow(SW_SHOW);

Cheers,
VinExpert
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now