Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMSDN example chatsrvr Pin
microsoftcertificate4-May-05 13:52
sussmicrosoftcertificate4-May-05 13:52 
GeneralRe: MSDN example chatsrvr Pin
Michael Dunn4-May-05 16:33
sitebuilderMichael Dunn4-May-05 16:33 
GeneralA question on switching compilers... Pin
Brian R4-May-05 12:55
Brian R4-May-05 12:55 
GeneralRe: A question on switching compilers... Pin
David Crow5-May-05 3:08
David Crow5-May-05 3:08 
GeneralAuto-Completing CDataCombo Pin
Roshprog4-May-05 12:20
Roshprog4-May-05 12:20 
GeneralMenu reappears after being deleted Pin
elephantstar4-May-05 11:50
elephantstar4-May-05 11:50 
QuestionHow do I add text to a list control inside a property sheet? Pin
realius4-May-05 10:45
realius4-May-05 10:45 
AnswerRe: How do I add text to a list control inside a property sheet? Pin
David Crow5-May-05 3:20
David Crow5-May-05 3:20 
realius wrote:
BOOL CTryproppageDlg::OnInitDialog()
{
CDialog::OnInitDialog();

static CPropertySheet myPropSheet;
static CMyPage1 myPage1;
static CMyPage2 myPage2;
myPropSheet.AddPage(&myPage1);
myPropSheet.AddPage(&myPage2);myPropSheet.Create();
myPage1.m_listctrl1.InsertItem(0,"stuff");
return TRUE; // return TRUE unless you set the focus to a control
}


This seems very odd to me. Even though CPropertySheet is not derived from CDialog, it is managed in a similar fashion. I would suggest deriving CTryproppageDlg from CPropertySheet. Add a CPropertyPage member variable for each tab required. In CTryproppageDlg's constructor, call AddPage() for each of those member variables. In each of the tab's OnInitDialog() method, call CListCtrl::InsertColumn(). Then populate the controls as necessary. Thus should be a much cleaner approach.


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralResizing comboboxes Pin
Jörgen Sigvardsson4-May-05 9:33
Jörgen Sigvardsson4-May-05 9:33 
GeneralRe: Resizing comboboxes Pin
toxcct5-May-05 1:06
toxcct5-May-05 1:06 
GeneralRe: Resizing comboboxes Pin
Jörgen Sigvardsson5-May-05 1:10
Jörgen Sigvardsson5-May-05 1:10 
GeneralInterop::Excel::Hell Pin
Delver4-May-05 9:24
Delver4-May-05 9:24 
QuestionHow to detect video card type? (PCI/AGP/PCI-E) Pin
umgoblue5254-May-05 8:56
umgoblue5254-May-05 8:56 
GeneralLinking errors with MFC Dialog Based application and Crypto++ Pin
Crocodilek4-May-05 8:45
Crocodilek4-May-05 8:45 
GeneralRe: Linking errors with MFC Dialog Based application and Crypto++ Pin
Crocodilek5-May-05 19:18
Crocodilek5-May-05 19:18 
GeneralRe: Linking errors with MFC Dialog Based application and Crypto++ Pin
Crocodilek5-May-05 19:19
Crocodilek5-May-05 19:19 
Generalsdk Pin
_tasleem4-May-05 6:57
_tasleem4-May-05 6:57 
GeneralRe: sdk Pin
David Crow4-May-05 7:25
David Crow4-May-05 7:25 
GeneralRe: sdk Pin
_tasleem4-May-05 8:04
_tasleem4-May-05 8:04 
GeneralRe: sdk Pin
David Crow4-May-05 8:53
David Crow4-May-05 8:53 
Generalapi in vc Pin
4-May-05 6:27
suss4-May-05 6:27 
GeneralRe: api in vc Pin
Maximilien4-May-05 6:43
Maximilien4-May-05 6:43 
GeneralRe: api in vc Pin
4-May-05 7:07
suss4-May-05 7:07 
GeneralRe: api in vc Pin
Maximilien4-May-05 7:38
Maximilien4-May-05 7:38 
GeneralRe: api in vc Pin
David Crow4-May-05 7:29
David Crow4-May-05 7:29 

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.