Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mfc dll Pin
Chris Losinger12-Nov-02 14:50
professionalChris Losinger12-Nov-02 14:50 
GeneralRe: mfc dll Pin
roboo12-Nov-02 14:53
roboo12-Nov-02 14:53 
GeneralRe: mfc dll Pin
Christian Graus12-Nov-02 15:05
protectorChristian Graus12-Nov-02 15:05 
GeneralRe: mfc dll Pin
TigerNinja_12-Nov-02 15:16
TigerNinja_12-Nov-02 15:16 
GeneralRe: mfc dll Pin
Christian Graus12-Nov-02 15:22
protectorChristian Graus12-Nov-02 15:22 
QuestionHow to get the clicked link's URL? Pin
ChengMing Liu12-Nov-02 14:43
ChengMing Liu12-Nov-02 14:43 
AnswerRe: How to get the clicked link's URL? Pin
Ernesto Perales Soto13-Nov-02 14:08
Ernesto Perales Soto13-Nov-02 14:08 
GeneralPropSheet, modeless, AddPage Pin
john john mackey12-Nov-02 14:41
john john mackey12-Nov-02 14:41 
Here is a twist (that is hanging me),

I have created a modeless Property Sheet. I now want to add pages at run time (remove pages then add pages) so that my property sheet has at most 2 pages at one time.

THE PROBLEM IS that I get an error when I try to do this. The debugger replys that a window handle is null (0x00000).

If I create the sheet and add the pages in while in the Sheet's constructor, I don't get an error. But if I try to add a page during run time, I get an error. What is wrong and how can I correct this? Please help.

Here is what I want:
Page 0 (zero) -- page that will be swapped in/out
Page 1 -- page that always appears. Must be the right most page (on tab)

I have my callbacks in CMainFrame class and I have done the modeless Property Sheets before -- when pages are not removed/added dynamically.

Thanks in advance for the help. Code snipet follows
Johnny

void CMainFrame::OnModelessPropSheet()
{
CBasicEventPage pageBasicEvent;
CPageBlue pageBlue;

/********** // 11/12/02 - dynamic add/removal of pages not yet working
int nPageCount;

// Remove both pages (event and the Basic Event Data)
nPageCount = m_pSheetManEvents->GetPageCount();
for (int i=0; i < nPageCount; i++)
m_pSheetManEvents->RemovePage(i);

// Add pages back in (starting with Blue and then Basic Event Data)
m_pSheetManEvents->AddPage(&pageBlue);
m_pSheetManEvents->AddPage(&pageBasicEvent);
m_pSheetManEvents->SetTitle("Insert Blue", 0);
**********/
if (m_pSheetManEvents->IsWindowVisible())
{
m_pSheetManEvents->SetFocus();
}
else
{
m_pSheetManEvents->ShowWindow(SW_SHOW);
}
}
QuestionHow to count the c++ file code lines? Pin
roboo12-Nov-02 14:39
roboo12-Nov-02 14:39 
AnswerRe: How to count the c++ file code lines? Pin
Christian Graus12-Nov-02 15:24
protectorChristian Graus12-Nov-02 15:24 
GeneralRe: How to count the c++ file code lines? Pin
roboo12-Nov-02 15:31
roboo12-Nov-02 15:31 
GeneralRe: How to count the c++ file code lines? Pin
Christian Graus12-Nov-02 15:48
protectorChristian Graus12-Nov-02 15:48 
GeneralRe: How to count the c++ file code lines? Pin
roboo12-Nov-02 15:53
roboo12-Nov-02 15:53 
GeneralRe: How to count the c++ file code lines? Pin
Christian Graus12-Nov-02 16:00
protectorChristian Graus12-Nov-02 16:00 
GeneralRe: How to count the c++ file code lines? Pin
roboo12-Nov-02 16:08
roboo12-Nov-02 16:08 
GeneralRe: How to count the c++ file code lines? Pin
Christian Graus12-Nov-02 16:12
protectorChristian Graus12-Nov-02 16:12 
AnswerRe: How to count the c++ file code lines? Pin
Chris Maunder12-Nov-02 17:04
cofounderChris Maunder12-Nov-02 17:04 
GeneralI have a question about how to create a web server. Pin
roboo12-Nov-02 14:27
roboo12-Nov-02 14:27 
GeneralTrying to find code for a virtual listbox Pin
Anonymous12-Nov-02 14:24
Anonymous12-Nov-02 14:24 
GeneralTrying to find code for a virtual listbox Pin
Anonymous12-Nov-02 14:24
Anonymous12-Nov-02 14:24 
GeneralThe Heap Pin
Templeton Peck12-Nov-02 13:52
sussTempleton Peck12-Nov-02 13:52 
GeneralRe: The Heap Pin
Chris Losinger12-Nov-02 14:02
professionalChris Losinger12-Nov-02 14:02 
GeneralRe: The Heap Pin
Templeton Peck12-Nov-02 14:08
sussTempleton Peck12-Nov-02 14:08 
GeneralHTML in dialog ! Pin
Hadi Rezaee12-Nov-02 12:17
Hadi Rezaee12-Nov-02 12:17 
GeneralRe: HTML in dialog ! Pin
Chris Losinger12-Nov-02 12:27
professionalChris Losinger12-Nov-02 12:27 

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.