Windows Develop Bookmark and Share   
 index > Windows Forms General > [URGENT] How do i create a large list of edit boxes using mfc?
 

[URGENT] How do i create a large list of edit boxes using mfc?

[URGENT]
Hi,
I need to create a large list of edit boxes each with its own check box and CButton. As the space is limited it will also have to have a vertical scroll bar..

Any ideas??
garedkarl  Tuesday, September 01, 2009 7:14 AM
Hi Aland Li,
So sorry for not replying but been kinda swamped.
I tried a fiddling around with datagrid for a bit but it wasnt getting me the look i was going for.
So i just went with a child dialog box and added all the edit boxes, buttons, scroll bar etc programatically...
took a bit of coding but it worked just fine.
garedkarl  Wednesday, September 09, 2009 1:45 PM
Hi garedkarl,

As far as I know, there is no such control in MFC, but the DataGridView control in .Net WinForm can do similar things. In WinForm, we can add three columns to the DataGridView to show such a list: DataGridViewTextBoxColumn, DataGridViewCheckBoxColumn and DataGridViewButtonColumn. We can also use a WinForm control in a MFC dialog.

These are some links:
Using WinForms controls in an MFC dialog: http://www.codeproject.com/KB/miscctrl/mfcdialogwinforms.aspx.
DataGridView details: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx.

Please let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, September 03, 2009 9:26 AM
Hi garedkarl,

Could you please let me know if my reply helps.

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Tuesday, September 08, 2009 9:54 AM
Hi Aland Li,
So sorry for not replying but been kinda swamped.
I tried a fiddling around with datagrid for a bit but it wasnt getting me the look i was going for.
So i just went with a child dialog box and added all the edit boxes, buttons, scroll bar etc programatically...
took a bit of coding but it worked just fine.
garedkarl  Wednesday, September 09, 2009 1:45 PM

You can use google to search for other answers

Custom Search

More Threads

• Cannot accessed a disposed object named ComboBox
• Language for TextBox
• create event handlers for controls inside a user control
• Simple binding textbox to decimal column in dataset problems
• Form Border Flicker
• AppUpdater and Non-Admin Users...
• ShowDialog() Not Modal Dialog (no parent form?)
• CheckedListBox problem
• Getting System Startup Time
• Console Application as an MDI child?