[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

How to generate Checkbox Dynamically??

How to generate Checkbox Dynamically??

Thanks
sudhakar
0
sudhakar_koundinya
Asked:
sudhakar_koundinya
  • 2
1 Solution
 
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
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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