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

C / C++ / MFC

 
GeneralThread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 15:47
valikac8-Aug-02 15:47 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
Nish Nishant8-Aug-02 17:24
sitebuilderNish Nishant8-Aug-02 17:24 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 17:27
valikac8-Aug-02 17:27 
GeneralChecksum Pin
Ed Gadziemski8-Aug-02 13:04
professionalEd Gadziemski8-Aug-02 13:04 
GeneralSending and Receiving Files Pin
fdmanana8-Aug-02 12:46
fdmanana8-Aug-02 12:46 
GeneralRe: Humm... Pin
Masaaki Onishi8-Aug-02 19:28
Masaaki Onishi8-Aug-02 19:28 
GeneralCreateFile & WriteFile Pin
Mavrock8-Aug-02 12:14
Mavrock8-Aug-02 12:14 
GeneralCPropertySheet - initialization Pin
john john mackey8-Aug-02 12:06
john john mackey8-Aug-02 12:06 
I'm stumped and need help. Why does my modeless property sheet show up right from the get go?

I have my property sheet stuff in CMainFrame (MainFrm.cpp/.h). I have a CPropertySheet derived class, CMySheet, and do the following in MainFrm.cpp:
m_pMySheet = new CMySheet("My Modeless Form", this, 0);
m_pMySheet->Create(this, -1, NULL);

I created a modeless property sheet and have overridden the CPropertySheet::OnInitDialog() operation as follows:

BOOL CMySheet::OnInitDialog()
{
// Setting of m_bModeless to FALSE and then TRUE is a trick from CodeGuru
m_bModeless = FALSE;
BOOL bResult = CPropertySheet::OnInitDialog();
m_bModeless = TRUE;

// The rest of my sheet's initialization - fields, controls, etc...

return bResult;
}

As soon as I run my executable, up pops my modeless property sheet. I don't want this to happen until my controlling dialog (dialog, menu item/menu bar) displays the property sheet.

Thanks in advance.
Johnny
GeneralRe: CPropertySheet - initialization Pin
john john mackey8-Aug-02 12:27
john john mackey8-Aug-02 12:27 
QuestionBuggy Debug? Pin
dazinith8-Aug-02 11:36
dazinith8-Aug-02 11:36 
AnswerRe: Buggy Debug? Pin
Shog98-Aug-02 12:23
sitebuilderShog98-Aug-02 12:23 
GeneralRe: Buggy Debug? Pin
dazinith9-Aug-02 4:07
dazinith9-Aug-02 4:07 
AnswerRe: Buggy Debug? Pin
Chris Losinger8-Aug-02 19:37
professionalChris Losinger8-Aug-02 19:37 
AnswerRe: Buggy Debug? Pin
Jeremy Pullicino8-Aug-02 23:42
Jeremy Pullicino8-Aug-02 23:42 
GeneralTimers, Windows and a stupid DLL Pin
User 66588-Aug-02 10:07
User 66588-Aug-02 10:07 
GeneralIAS Extension DLL Pin
Mauricio Ritter8-Aug-02 9:27
Mauricio Ritter8-Aug-02 9:27 
GeneralHeelp!! Double buffering!! Pin
Rickard Andersson208-Aug-02 8:19
Rickard Andersson208-Aug-02 8:19 
GeneralRe: Heelp!! Double buffering!! Pin
Rickard Andersson208-Aug-02 8:40
Rickard Andersson208-Aug-02 8:40 
GeneralKey codes from low level hooks Pin
Alex Korchemniy8-Aug-02 8:19
Alex Korchemniy8-Aug-02 8:19 
GeneralRe: Key codes from low level hooks Pin
Renjith Ramachandran8-Aug-02 9:09
Renjith Ramachandran8-Aug-02 9:09 
GeneralRe: Key codes from low level hooks Pin
Jon Hulatt9-Aug-02 1:23
Jon Hulatt9-Aug-02 1:23 
QuestionAutomatic Scrolling in a list box? Pin
Anonymous Dave8-Aug-02 8:15
sussAnonymous Dave8-Aug-02 8:15 
AnswerRe: Automatic Scrolling in a list box? Pin
Tomasz Sowinski8-Aug-02 8:50
Tomasz Sowinski8-Aug-02 8:50 
GeneralRe: Automatic Scrolling in a list box? Pin
Anonymous Dave8-Aug-02 10:04
sussAnonymous Dave8-Aug-02 10:04 
QuestionLines of code in Visual C++ project? Pin
Aaron Schaefer8-Aug-02 8:08
Aaron Schaefer8-Aug-02 8:08 

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.