Current location - Training Enrollment Network - Books and materials - Help me explain in detail how the library management program written by C++ is combined with MFC interface.
Help me explain in detail how the library management program written by C++ is combined with MFC interface.
There is a list control in MFC. You can put it on the interface and then associate a variable m_List, which you can use to initialize it (such as m_List). InsertColumn(0," label ",LVCFMT_CENTER,80);

M_List。 InsertColumn( 1," title ",LVCFMT_CENTER,80);

There are two columns, and then read a field from the database. You can insert a row with InsertItem (). Please refer to MSDN for specific use.