How to generate Checkbox Dynamically??

Posted on 2004-11-07
Last Modified: 2013-11-20
How to generate Checkbox Dynamically??

Question by:sudhakar_koundinya
    LVL 6

    Accepted Solution

    CButton *chkDay[5];

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

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

    Author Comment

    That is cool answer. Thanks for your help.

    BTW, where are you from?? I am from Hyderabad
    LVL 6

    Expert Comment

    by:Amritpal Singh
    i'm from chandigarh
    just started my programming career in alocal firm here "Drish Infotech" as a programmer analyst

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
    Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now