Click here to Skip to main content
13,005,455 members (60,960 online)

C / C++ / MFC

 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:11
member*Dreamz28-Jun-04 2:11 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 2:46
memberPazzuzu28-Jun-04 2:46 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:58
member*Dreamz28-Jun-04 2:58 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:10
memberPazzuzu28-Jun-04 3:10 
GeneralRe: List box control Pin
DavidCrow28-Jun-04 3:20
memberDavidCrow28-Jun-04 3:20 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:21
memberPazzuzu28-Jun-04 3:21 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 3:35
member*Dreamz28-Jun-04 3:35 
GeneralRe: List box control Pin
Peter Mares28-Jun-04 7:55
memberPeter 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
memberPazzuzu28-Jun-04 19:52 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 19:53
memberPazzuzu28-Jun-04 19:53 
GeneralRe: List box control Pin
DavidCrow28-Jun-04 2:46
memberDavidCrow28-Jun-04 2:46 
GeneralAny Body Know abt SmartCard Api's Pin
Alok the programmer28-Jun-04 0:37
memberAlok the programmer28-Jun-04 0:37 
GeneralRe: Any Body Know abt SmartCard Api's Pin
GermanGeorge1-Jul-04 2:32
memberGermanGeorge1-Jul-04 2:32 
GeneralDebug with .NET 2003 Pin
Jerome Conus27-Jun-04 23:31
memberJerome Conus27-Jun-04 23:31 
GeneralRe: Debug with .NET 2003 Pin
Antony M Kancidrowski28-Jun-04 0:14
memberAntony M Kancidrowski28-Jun-04 0:14 
GeneralRe: Debug with .NET 2003 Pin
Jerome Conus28-Jun-04 0:46
memberJerome Conus28-Jun-04 0:46 
QuestionHow to reposition Modeless Dialog box on resizing application window Pin
T.Arun Chakaravarthy27-Jun-04 23:22
memberT.Arun Chakaravarthy27-Jun-04 23:22 
AnswerRe: How to reposition Modeless Dialog box on resizing application window Pin
Peter Mares28-Jun-04 0:58
memberPeter Mares28-Jun-04 0:58 
Generalcode for decompression and compression JPEG file Pin
jitwadee27-Jun-04 23:17
memberjitwadee27-Jun-04 23:17 
GeneralRe: code for decompression and compression JPEG file Pin
Greeeg27-Jun-04 23:56
memberGreeeg27-Jun-04 23:56 
QuestionHow To read an exe application from VC++6.0 Pin
karhea27-Jun-04 22:39
memberkarhea27-Jun-04 22:39 
AnswerRe: How To read an exe application from VC++6.0 Pin
DavidCrow28-Jun-04 2:51
memberDavidCrow28-Jun-04 2:51 
GeneralRe: How To read an exe application from VC++6.0 Pin
karhea28-Jun-04 18:00
memberkarhea28-Jun-04 18:00 
GeneralRe: How To read an exe application from VC++6.0 Pin
DavidCrow29-Jun-04 2:50
memberDavidCrow29-Jun-04 2:50 
Generaldialog box as part of the main window Pin
udi444427-Jun-04 22:33
memberudi444427-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.


Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 28 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid