Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange Font bolding Pin
Nibu babu thomas28-Feb-07 17:24
Nibu babu thomas28-Feb-07 17:24 
GeneralRe: Strange Font bolding Pin
super_ttd28-Feb-07 21:30
super_ttd28-Feb-07 21:30 
GeneralRe: Strange Font bolding Pin
Nibu babu thomas28-Feb-07 21:36
Nibu babu thomas28-Feb-07 21:36 
Questioni want to know when a button is clicked but it was "DISABLED" Pin
Ing.Raiz8227-Feb-07 0:08
Ing.Raiz8227-Feb-07 0:08 
AnswerRe: i want to know when a button is clicked but it was "DISABLED" Pin
prasad_som27-Feb-07 0:15
prasad_som27-Feb-07 0:15 
AnswerRe: i want to know when a button is clicked but it was "DISABLED" Pin
James R. Twine27-Feb-07 1:14
James R. Twine27-Feb-07 1:14 
AnswerRe: i want to know when a button is clicked but it was "DISABLED" Pin
Ing.Raiz8227-Feb-07 4:01
Ing.Raiz8227-Feb-07 4:01 
QuestionDestroy View Pin
baerten27-Feb-07 0:04
baerten27-Feb-07 0:04 
Hi,

i create a Frame within a TabWnd. In the different Tabs, i place a View.
If i click on button on the view, i create dynammicaly a new View and replace it.
If the user wishes to close this new View, the old view returns.

The changing works nice, but i have trouble to close and delete the view.
I send a WM_CLOSE to the view and after this a delete :

LRESULT ViewTabWnd::CloseOld(WPARAM w, LPARAM l)
{
CWnd* Old = (CWnd*)w;
Old->SendMessage(WM_CLOSE);
delete Old;
return TRUE;
}

But at "delete Old" i have the error :

Last Trace : (<<<<<<< indicates the debug-trace )

void PASCAL CObject::operator delete(void* p)
{
#ifdef _AFX_NO_DEBUG_CRT
free(p);
#else
_free_dbg(p, _AFX_CLIENT_BLOCK); <<<<<<<<<
#endif
}

if (pHead->nBlockUse == _IGNORE_BLOCK)
{
_ASSERTE(pHead->nLine == IGNORE_LINE && pHead->lRequest == IGNORE_REQ);
/* fill the entire block including header with dead-land-fill */
memset(pHead, _bDeadLandFill,
sizeof(_CrtMemBlockHeader) + pHead->nDataSize + nNoMansLandSize);
_free_base(pHead); <<<<<<<<<<<<<<<<<
RTCCALLBACK(_RTC_FuncCheckSet_hook,(1));
return;
}



Does anyone knows this problem ?
I'm confused Sigh | :sigh:

Thanks
AnswerRe: Destroy View Pin
prasad_som27-Feb-07 1:38
prasad_som27-Feb-07 1:38 
GeneralRe: Destroy View Pin
baerten27-Feb-07 1:51
baerten27-Feb-07 1:51 
JokeDamn Pin
baerten27-Feb-07 4:02
baerten27-Feb-07 4:02 
GeneralRe: Damn Pin
prasad_som27-Feb-07 4:16
prasad_som27-Feb-07 4:16 
GeneralRe: Damn Pin
baerten27-Feb-07 21:02
baerten27-Feb-07 21:02 
GeneralRe: Damn Pin
prasad_som28-Feb-07 1:20
prasad_som28-Feb-07 1:20 
Questionchanging font size of cstatic ctrl. How ? Pin
sakthimuthu27-Feb-07 0:03
sakthimuthu27-Feb-07 0:03 
AnswerRe: changing font size of cstatic ctrl. How ? Pin
Hamid_RT27-Feb-07 0:38
Hamid_RT27-Feb-07 0:38 
AnswerRe: changing font size of cstatic ctrl. How ? Pin
prasad_som27-Feb-07 1:28
prasad_som27-Feb-07 1:28 
AnswerRe: changing font size of cstatic ctrl. How ? Pin
David Crow27-Feb-07 2:55
David Crow27-Feb-07 2:55 
Questionpassing parameter in thread Pin
neha.agarwal2726-Feb-07 23:40
neha.agarwal2726-Feb-07 23:40 
AnswerRe: passing parameter in thread Pin
toxcct26-Feb-07 23:42
toxcct26-Feb-07 23:42 
GeneralRe: passing parameter in thread [modified] Pin
Nibu babu thomas27-Feb-07 1:17
Nibu babu thomas27-Feb-07 1:17 
GeneralRe: passing parameter in thread Pin
toxcct27-Feb-07 1:49
toxcct27-Feb-07 1:49 
GeneralRe: passing parameter in thread Pin
James R. Twine27-Feb-07 1:24
James R. Twine27-Feb-07 1:24 
AnswerRe: passing parameter in thread Pin
James R. Twine27-Feb-07 1:29
James R. Twine27-Feb-07 1:29 
GeneralRe: passing parameter in thread Pin
neha.agarwal2727-Feb-07 1:47
neha.agarwal2727-Feb-07 1:47 

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.