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

C / C++ / MFC

 
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 
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 
Pazzuzu wrote:
[1]How will I create a Listbox control
used the "m_ListBox.Create"- How will I pass the cDialog class as I have to pass a "pParentWnd parameter" which expects a CWindow object


Unless you absolutely have to, it's easier to create the control at design-time rather than at run-time. As to your question about the Create() method, the third parameter would be the this pointer. For example:

BOOL CMyDialog::OnInitDialog()
{
    m_listbox.Create(..., this, IDC_LISTBOX1);
    return TRUE;
}

Pazzuzu wrote:
[3] Want to add 2 columns in the list box,a header row, with constant values.

You can do this with a listbox (by using tab stops), but as already mentioned, it's much easier with a list control.


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


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 
GeneralRe: dialog box as part of the main window Pin
John R. Shaw28-Jun-04 19:00
John R. Shaw28-Jun-04 19:00 
GeneralDetecting Mouse Movements Across an IE Control Pin
achimera27-Jun-04 22:30
achimera27-Jun-04 22:30 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
Rama Krishna Vavilala25-Apr-06 17:16
Rama Krishna Vavilala25-Apr-06 17:16 

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.