How to generate Checkbox Dynamically??

How to generate Checkbox Dynamically??

Thanks
sudhakar
LVL 14
sudhakar_koundinyaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amritpal SinghCommented:
CButton *chkDay[5];

      chkDay[0] = new CButton;
      chkDay[0]->Create("&Monday", WS_CHILD | WS_VISIBLE |
      BS_AUTOCHECKBOX | BS_LEFTTEXT,
      CRect(20, 40, 140, 55), this, 0x11);

chkDay[1] = new CButton;
      chkDay[1]->Create("&Tuesday", WS_CHILD | WS_VISIBLE |
      BS_AUTOCHECKBOX | BS_LEFTTEXT,
      CRect(20, 60, 140, 75), this, 0x12);
..........
..........
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sudhakar_koundinyaAuthor Commented:
That is cool answer. Thanks for your help.

BTW, where are you from?? I am from Hyderabad
0
Amritpal SinghCommented:
i'm from chandigarh
just started my programming career in alocal firm here "Drish Infotech" as a programmer analyst
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.