Click here to Skip to main content
12,406,687 members (58,779 online)

C / C++ / MFC

 
GeneralRe: A pixel from another program... Pin
DavidCrow28-Jun-04 9:09
memberDavidCrow28-Jun-04 9:09 
GeneralRe: A pixel from another program... Pin
Marcello28-Jun-04 8:16
memberMarcello28-Jun-04 8:16 
GeneralList box control Pin
Pazzuzu28-Jun-04 0:45
memberPazzuzu28-Jun-04 0:45 
GeneralRe: List box control Pin
Peter Mares28-Jun-04 1:02
memberPeter Mares28-Jun-04 1:02 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 1:13
memberPazzuzu28-Jun-04 1:13 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 1:15
memberPazzuzu28-Jun-04 1:15 
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 
GeneralRe: dialog box as part of the main window Pin
John R. Shaw28-Jun-04 19:00
memberJohn R. Shaw28-Jun-04 19:00 
GeneralDetecting Mouse Movements Across an IE Control Pin
chimera6727-Jun-04 22:30
memberchimera6727-Jun-04 22:30 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
Rama Krishna Vavilala25-Apr-06 17:16
memberRama Krishna Vavilala25-Apr-06 17:16 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
chimera6726-Apr-06 9:50
memberchimera6726-Apr-06 9:50 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
Shog925-Apr-06 23:38
sitebuilderShog925-Apr-06 23:38 
GeneralTab Order suddenly began going backwards Pin
ohadp27-Jun-04 22:23
memberohadp27-Jun-04 22:23 
GeneralRE: How to get 1394 Fireware GUID in windows Pin
HansonDavid27-Jun-04 22:17
memberHansonDavid27-Jun-04 22:17 
GeneralRe: RE: How to get 1394 Fireware GUID in windows Pin
Henry miller28-Jun-04 3:05
memberHenry miller28-Jun-04 3:05 
Generalquestion about matlab Pin
ffredoux27-Jun-04 22:15
memberffredoux27-Jun-04 22:15 
GeneralCovert number to string Pin
Anonymous27-Jun-04 22:02
sussAnonymous27-Jun-04 22:02 
GeneralRe: Covert number to string Pin
bneacetp27-Jun-04 22:11
memberbneacetp27-Jun-04 22:11 
GeneralRe: Covert number to string Pin
Alok the programmer28-Jun-04 0:39
memberAlok the programmer28-Jun-04 0:39 
GeneralRe: Covert number to string Pin
euacela28-Jun-04 2:44
membereuacela28-Jun-04 2:44 
GeneralRecognise text from Bitmap Pin
krishnadevank27-Jun-04 21:54
memberkrishnadevank27-Jun-04 21:54 
GeneralRe: Recognise text from Bitmap Pin
Antony M Kancidrowski28-Jun-04 0:47
memberAntony M Kancidrowski28-Jun-04 0:47 
GeneralRe: Recognise text from Bitmap Pin
Vladimir Georgiev28-Jun-04 1:00
memberVladimir Georgiev28-Jun-04 1:00 
Questionhow to get list of table from ODBC Pin
goodmast3r27-Jun-04 20:36
membergoodmast3r27-Jun-04 20:36 
AnswerRe: how to get list of table from ODBC Pin
DavidCrow28-Jun-04 2:57
memberDavidCrow28-Jun-04 2:57 
GeneralDisplay number on the Push Button Pin
S.DARWIN PAUL RAJ27-Jun-04 20:01
memberS.DARWIN PAUL RAJ27-Jun-04 20:01 

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
Web01 | 2.8.160730.1 | Last Updated 30 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid