Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:11
*Dreamz28-Jun-04 2:11 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 2:46
Pazzuzu28-Jun-04 2:46 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:58
*Dreamz28-Jun-04 2:58 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:10
Pazzuzu28-Jun-04 3:10 
GeneralRe: List box control Pin
David Crow28-Jun-04 3:20
David Crow28-Jun-04 3:20 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:21
Pazzuzu28-Jun-04 3:21 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 3:35
*Dreamz28-Jun-04 3:35 
GeneralRe: List box control Pin
Peter Mares28-Jun-04 7:55
Peter Mares28-Jun-04 7:55 
ok, to add columns to the list control, make sure that you create the control with the LVS_REPORT style.

then call CListCtrl::InsertColumn() to add a column and then CListCtrl::InsertItem() to add items. I saw a post that already indicated this.

Now to the problem of sizing the control to the size of your dialog:

In the dialog class, handle the WM_SIZE message, call GetClientRect() to get the current client rectangle of the dialog and then just call CListCtrl::MoveWindow() to size the list control to the size of the dialog.

HOpefully that explains it.
Ciao


controlSHIFT
[Glossary Manager] [AfterThought Backup Lite]

All good things were meant to be improved
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 19:52
Pazzuzu28-Jun-04 19:52 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 19:53
Pazzuzu28-Jun-04 19:53 
GeneralRe: List box control Pin
David Crow28-Jun-04 2:46
David Crow28-Jun-04 2:46 
GeneralAny Body Know abt SmartCard Api's Pin
ThatsAlok28-Jun-04 0:37
ThatsAlok28-Jun-04 0:37 
GeneralRe: Any Body Know abt SmartCard Api's Pin
GermanGeorge1-Jul-04 2:32
GermanGeorge1-Jul-04 2:32 
GeneralDebug with .NET 2003 Pin
Jerome Conus27-Jun-04 23:31
Jerome Conus27-Jun-04 23:31 
GeneralRe: Debug with .NET 2003 Pin
Antony M Kancidrowski28-Jun-04 0:14
Antony M Kancidrowski28-Jun-04 0:14 
GeneralRe: Debug with .NET 2003 Pin
Jerome Conus28-Jun-04 0:46
Jerome Conus28-Jun-04 0:46 
QuestionHow to reposition Modeless Dialog box on resizing application window Pin
Arun AC27-Jun-04 23:22
Arun AC27-Jun-04 23:22 
AnswerRe: How to reposition Modeless Dialog box on resizing application window Pin
Peter Mares28-Jun-04 0:58
Peter Mares28-Jun-04 0:58 
Generalcode for decompression and compression JPEG file Pin
jitwadee27-Jun-04 23:17
jitwadee27-Jun-04 23:17 
GeneralRe: code for decompression and compression JPEG file Pin
User 665827-Jun-04 23:56
User 665827-Jun-04 23:56 
QuestionHow To read an exe application from VC++6.0 Pin
karhea27-Jun-04 22:39
karhea27-Jun-04 22:39 
AnswerRe: How To read an exe application from VC++6.0 Pin
David Crow28-Jun-04 2:51
David Crow28-Jun-04 2:51 
GeneralRe: How To read an exe application from VC++6.0 Pin
karhea28-Jun-04 18:00
karhea28-Jun-04 18:00 
GeneralRe: How To read an exe application from VC++6.0 Pin
David Crow29-Jun-04 2:50
David Crow29-Jun-04 2:50 
Generaldialog box as part of the main window Pin
udi444427-Jun-04 22:33
udi444427-Jun-04 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.