Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LoadLibrary cand call MFC DLL's fucntion Pin
akira3218-Feb-09 19:11
akira3218-Feb-09 19:11 
GeneralRe: LoadLibrary cand call MFC DLL's fucntion Pin
«_Superman_»18-Feb-09 19:17
professional«_Superman_»18-Feb-09 19:17 
GeneralRe: LoadLibrary cand call MFC DLL's fucntion Pin
hariscats7-Dec-09 1:15
hariscats7-Dec-09 1:15 
QuestionDetect Current Drive name in EVC++ 4.0 on window CE 5.0 Pin
pri_skit18-Feb-09 18:39
pri_skit18-Feb-09 18:39 
QuestionSHGetDataFromIDList Problem Pin
john563218-Feb-09 18:00
john563218-Feb-09 18:00 
QuestionCRichEditCtrl and printing Pin
prithaa18-Feb-09 17:44
prithaa18-Feb-09 17:44 
AnswerRe: CRichEditCtrl and printing Pin
Stuart Dootson18-Feb-09 17:52
professionalStuart Dootson18-Feb-09 17:52 
QuestionTrying to create a Popup Window Pin
BobInNJ18-Feb-09 5:05
BobInNJ18-Feb-09 5:05 
I would like to add a graph (x vs y plot ) to my application. I would like this graph to be displayed in a new window. Therefore, I wrote the following code:

<br />
void<br />
CMyView::drawGraph()<br />
{<br />
/*<br />
virtual BOOL CreateEx(<br />
   DWORD dwExStyle,<br />
   LPCTSTR lpszClassName,<br />
   LPCTSTR lpszWindowName,<br />
   DWORD dwStyle,<br />
   const RECT& rect,<br />
   CWnd* pParentWnd,<br />
   UINT nID,<br />
   LPVOID lpParam = NULL<br />
);<br />
*/<br />
	CRect rect1( 100, 200, 300, 400 );<br />
	CreateEx(  0, NULL, TEXT("Graph"), WS_OVERLAPPEDWINDOW|WS_CHILD,<br />
		rect1, this, 0 );<br />
}<br />
<br />
Unfortunately, the call to CWnd::CreateEx dies with an assertion error. The routine CWnd::CreateEx<br />
calls the routine AfxHookWindowCreate. This routine has the following assert statement in it:<br />
<code><br />
ASSERT(pWnd->m_hWnd == NULL);   // only do once<br />


In my case, m_hWnd is non-NULL. Therefore, the program aborts. I am sure that I am doing something
wrong in the call to CreateEx but I do not know what it is. Also, I find the documentation for
this call to be lacking. For one thing, I could not find any examples where it was used to create
a sub-window.

Thanks

Bob
AnswerRe: Trying to create a Popup Window Pin
prasad_som18-Feb-09 6:26
prasad_som18-Feb-09 6:26 
AnswerRe: Trying to create a Popup Window Pin
Iain Clarke, Warrior Programmer19-Feb-09 0:20
Iain Clarke, Warrior Programmer19-Feb-09 0:20 
QuestionModifying the window list and/or Ctrl+Tab behaviour in an MDI app Pin
Paul Vickery18-Feb-09 4:28
professionalPaul Vickery18-Feb-09 4:28 
AnswerRe: Modifying the window list and/or Ctrl+Tab behaviour in an MDI app Pin
led mike18-Feb-09 4:40
led mike18-Feb-09 4:40 
Questionmultiple dll Pin
pedefetoll18-Feb-09 3:08
pedefetoll18-Feb-09 3:08 
AnswerRe: multiple dll Pin
CPallini18-Feb-09 3:17
mveCPallini18-Feb-09 3:17 
AnswerRe: multiple dll Pin
Iain Clarke, Warrior Programmer18-Feb-09 3:51
Iain Clarke, Warrior Programmer18-Feb-09 3:51 
GeneralRe: multiple dll Pin
led mike18-Feb-09 4:30
led mike18-Feb-09 4:30 
QuestionCComboBox Pin
durban218-Feb-09 2:32
durban218-Feb-09 2:32 
AnswerRe: CComboBox Pin
krmed18-Feb-09 2:45
krmed18-Feb-09 2:45 
AnswerRe: CComboBox Pin
_AnsHUMAN_ 18-Feb-09 2:46
_AnsHUMAN_ 18-Feb-09 2:46 
AnswerRe: CComboBox Pin
David Crow18-Feb-09 3:05
David Crow18-Feb-09 3:05 
QuestionPassing a string Pin
brucewayn18-Feb-09 2:31
brucewayn18-Feb-09 2:31 
AnswerRe: Passing a string Pin
Cedric Moonen18-Feb-09 2:38
Cedric Moonen18-Feb-09 2:38 
GeneralRe: Passing a string Pin
CPallini18-Feb-09 22:06
mveCPallini18-Feb-09 22:06 
GeneralRe: Passing a string Pin
Cedric Moonen18-Feb-09 22:49
Cedric Moonen18-Feb-09 22:49 
GeneralRe: Passing a string Pin
CPallini18-Feb-09 23:12
mveCPallini18-Feb-09 23:12 

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.