Click here to Skip to main content
15,907,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load the dialogs in a tabcontrol.. Pin
Ruben93816-Sep-03 13:08
Ruben93816-Sep-03 13:08 
Generalneed FTP file download code help Pin
ns16-Sep-03 5:53
ns16-Sep-03 5:53 
GeneralRe: need FTP file download code help Pin
Anonymous16-Sep-03 6:46
Anonymous16-Sep-03 6:46 
GeneralRe: need FTP file download code help Pin
Jagadeesh VN16-Sep-03 6:48
Jagadeesh VN16-Sep-03 6:48 
Generalcreating listbox dynamically Pin
Neelesh K J Jain16-Sep-03 4:23
Neelesh K J Jain16-Sep-03 4:23 
GeneralRe: creating listbox dynamically Pin
Steve S16-Sep-03 4:33
Steve S16-Sep-03 4:33 
GeneralRe: creating listbox dynamically Pin
David Crow16-Sep-03 4:35
David Crow16-Sep-03 4:35 
GeneralRe: creating listbox dynamically Pin
Jagadeesh VN16-Sep-03 6:56
Jagadeesh VN16-Sep-03 6:56 
I presume the problem is not with window styles. You are creating the CListBox control object within the local scope. The object will get deleted once the program control exits the function. So try something like this:

CListBox m_pclb; //In header ( .h file )

In .CPP

m_pclb->Create(WS_VISIBLE | LBS_SORT,CRect(10,10,100,150),this,123);
this->Invalidate(TRUE);

This should work!!!

"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
GeneralRe: creating listbox dynamically Pin
David Crow16-Sep-03 8:39
David Crow16-Sep-03 8:39 
GeneralNon-MFC Colored Listbox items Pin
ScorpioMidget16-Sep-03 4:18
ScorpioMidget16-Sep-03 4:18 
GeneralRe: Non-MFC Colored Listbox items Pin
skaanji16-Sep-03 4:47
skaanji16-Sep-03 4:47 
GeneralRe: Non-MFC Colored Listbox items Pin
ScorpioMidget16-Sep-03 5:42
ScorpioMidget16-Sep-03 5:42 
Generalmfc dialog , retrieve store info Pin
Anonymous16-Sep-03 3:42
Anonymous16-Sep-03 3:42 
GeneralRe: mfc dialog , retrieve store info Pin
Jason Henderson16-Sep-03 3:44
Jason Henderson16-Sep-03 3:44 
GeneralRe: mfc dialog , retrieve store info Pin
David Crow16-Sep-03 4:08
David Crow16-Sep-03 4:08 
GeneralWriting binary data to a floppy Pin
Kuniva16-Sep-03 3:36
Kuniva16-Sep-03 3:36 
GeneralRe: Writing binary data to a floppy Pin
Nish Nishant16-Sep-03 3:50
sitebuilderNish Nishant16-Sep-03 3:50 
GeneralRe: Writing binary data to a floppy Pin
David Crow16-Sep-03 4:17
David Crow16-Sep-03 4:17 
Generalimpersonation Pin
Arik Poznanski16-Sep-03 3:35
Arik Poznanski16-Sep-03 3:35 
GeneralRe: impersonation Pin
Graham Bradshaw16-Sep-03 4:33
Graham Bradshaw16-Sep-03 4:33 
GeneralRe: impersonation Pin
Steve S16-Sep-03 4:36
Steve S16-Sep-03 4:36 
GeneralPicture Control + Jpeg Pin
KKR16-Sep-03 3:27
KKR16-Sep-03 3:27 
GeneralRe: Picture Control + Jpeg Pin
David Crow16-Sep-03 6:52
David Crow16-Sep-03 6:52 
GeneralStructure Problem Pin
TheFox16-Sep-03 2:52
TheFox16-Sep-03 2:52 
GeneralRe: Structure Problem Pin
Graham Bradshaw16-Sep-03 3:09
Graham Bradshaw16-Sep-03 3:09 

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.