Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function/ read file Pin
toxcct25-Apr-04 4:30
toxcct25-Apr-04 4:30 
QuestionHow to detect if a user is created? Pin
sekuritacs24-Apr-04 14:31
susssekuritacs24-Apr-04 14:31 
AnswerRe: How to detect if a user is created? Pin
David Crow26-Apr-04 3:08
David Crow26-Apr-04 3:08 
GeneralRe: How to detect if a user is created? Pin
sekuritacs26-Apr-04 13:56
susssekuritacs26-Apr-04 13:56 
Generalcreate file with certain text Pin
Ryan McDermott24-Apr-04 14:01
Ryan McDermott24-Apr-04 14:01 
GeneralRe: create file with certain text Pin
gUrM33T24-Apr-04 16:02
gUrM33T24-Apr-04 16:02 
GeneralRe: create file with certain text Pin
Paul Ranson24-Apr-04 22:35
Paul Ranson24-Apr-04 22:35 
GeneralCDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 11:55
Halloko24-Apr-04 11:55 
Hi,

I'm currently experiencing quite an odd problem.
I have this dialog (CDialog) which, among other things, contain a tree control and a property sheet. That is, I create the CPropertySheet dynamically by doing something like this:
<br />
// Create the property sheet<br />
m_interactionSheet.Construct("HEHE", this);<br />
<br />
// Construct and add the pages for the property sheet<br />
m_actionPage.Construct(IDD_ACTIONS);<br />
m_eventPage.Construct(IDD_EVENTS);<br />
m_interactionSheet.AddPage(&m_actionPage);<br />
m_interactionSheet.AddPage(&m_eventPage);<br />
<br />
// Create and show the property sheet itself<br />
m_interactionSheet.Create(this, WS_CHILD | WS_VISIBLE);

The above code works without any problems. However, if I try to show another dialog after having called CPropertySheet's Create() function, the application locks up. It's like it goes into an infinite message loop or something :S

If I comment out the m_interactionSheet.Create() part I can create and display CDialogs again.. otherwise not.

EDIT: I have reproduced the behaviour in an ordinary SDI application. PLEASE have a look at it here:
http://www.blacksmith-studios.dk/PropertyTest.zip[^]

The problem is in the CInteraction::OnInitDialog() function. (BTW, this is just a test program so everything might be messy and all.. this problem is just killing me Cry | :(( )


Any idea what might be causing this as I'm all blank OMG | :OMG:
Thanks,
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar24-Apr-04 23:32
Prakash Nadar24-Apr-04 23:32 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 23:43
Halloko24-Apr-04 23:43 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar24-Apr-04 23:56
Prakash Nadar24-Apr-04 23:56 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko24-Apr-04 23:58
Halloko24-Apr-04 23:58 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Prakash Nadar25-Apr-04 0:02
Prakash Nadar25-Apr-04 0:02 
GeneralRe: CDialog and CPropertySheet problem..! Pin
Halloko26-Apr-04 19:59
Halloko26-Apr-04 19:59 
GeneralCMap Losing Data Pin
brdavid24-Apr-04 10:34
brdavid24-Apr-04 10:34 
GeneralRe: CMap Losing Data Pin
toxcct24-Apr-04 11:49
toxcct24-Apr-04 11:49 
GeneralRe: CMap Losing Data Pin
brdavid24-Apr-04 12:37
brdavid24-Apr-04 12:37 
GeneralRe: CMap Losing Data Pin
brdavid24-Apr-04 15:45
brdavid24-Apr-04 15:45 
GeneralRe: CMap Losing Data Pin
gUrM33T24-Apr-04 16:18
gUrM33T24-Apr-04 16:18 
GeneralRe: CMap Losing Data Pin
brdavid25-Apr-04 1:53
brdavid25-Apr-04 1:53 
Generaliphlpapi.h error Pin
Toni7824-Apr-04 9:45
Toni7824-Apr-04 9:45 
GeneralRe: iphlpapi.h error Pin
_moved24-Apr-04 12:28
_moved24-Apr-04 12:28 
GeneralRe: iphlpapi.h error Pin
Anonymous25-Apr-04 1:08
Anonymous25-Apr-04 1:08 
Generalfopen problem... Pin
toxcct24-Apr-04 7:00
toxcct24-Apr-04 7:00 
GeneralRe: fopen problem... Pin
Prakash Nadar24-Apr-04 7:08
Prakash Nadar24-Apr-04 7: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.