Click here to Skip to main content
15,902,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralError on TransparentBlt Pin
21-May-01 7:39
suss21-May-01 7:39 
GeneralRe: Error on TransparentBlt Pin
Igor Sukhov21-May-01 7:44
Igor Sukhov21-May-01 7:44 
GeneralRe: Error on TransparentBlt Pin
21-May-01 7:50
suss21-May-01 7:50 
GeneralHelp plz Pin
21-May-01 7:34
suss21-May-01 7:34 
GeneralRe: Help plz Pin
Igor Sukhov21-May-01 7:48
Igor Sukhov21-May-01 7:48 
GeneralRe: Help plz Pin
21-May-01 8:03
suss21-May-01 8:03 
GeneralRe: Help plz Pin
Christian Graus21-May-01 11:36
protectorChristian Graus21-May-01 11:36 
GeneralOnNewDocument fails with three-way splitter! Pin
Ingemar Andre21-May-01 7:00
Ingemar Andre21-May-01 7:00 
Hi, I have a three-way splitter window defined like this in my SDI application:

if (!m_wndSplitter1.CreateStatic (this, 1, 2) || !m_wndSplitter1.CreateView (0, 0,
RUNTIME_CLASS (CScrollView), CSize (dataviewwidth, 0 ), pContext) ||
!m_wndSplitter2.CreateStatic (&m_wndSplitter1, 2, 1,
WS_CHILD | WS_VISIBLE, m_wndSplitter1.IdFromRowCol (0, 1)) ||
!m_wndSplitter2.CreateView (0, 0,
RUNTIME_CLASS (CGraphView), CSize (0, graphviewheight), pContext) ||
!m_wndSplitter2.CreateView (1, 0,
RUNTIME_CLASS (COutputView), CSize (1, 0), pContext))
return FALSE;

That is with two different views (CGraphView, COutputView) in the second splitter window. I try to add serialization
to my software but when I try the New or open command the app is crashing.

When myDocument::OnNewDocument is invoked i get an assertion error in the function

void AFXAPI AfxHookWindowCreate(CWnd* pWnd) (ASSERT(pWnd->m_hWnd == NULL); )

This is does not occur when the document is created at start. If I have the same views in the second
splitter window there is no problem. Also if I destroy the second view in the second splitter window with
pView->DestroyWindow() in the myDocument::Serialize(CArchive& ar) function I can Invoke the save command
without crashes (although the destroyed view might lock). It seems like there is a problem updating the second
view if it already has been created.

Does anyone have an idea how to solve this problem I would be more than happy!

/Ingemar

GeneralRe: OnNewDocument fails with three-way splitter! Pin
Tomasz Sowinski21-May-01 7:11
Tomasz Sowinski21-May-01 7:11 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Ingemar Andre22-May-01 1:23
Ingemar Andre22-May-01 1:23 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Tomasz Sowinski22-May-01 1:42
Tomasz Sowinski22-May-01 1:42 
GeneralRe: OnNewDocument fails with three-way splitter! Pin
Ingemar Andre22-May-01 22:57
Ingemar Andre22-May-01 22:57 
GeneralSDI Splitter. how to print/prev one view Pin
Chris Losinger21-May-01 6:14
professionalChris Losinger21-May-01 6:14 
GeneralRe: SDI Splitter. how to print/prev one view Pin
Tomasz Sowinski21-May-01 6:32
Tomasz Sowinski21-May-01 6:32 
GeneralAdditional Toolbar in WinCE Pin
21-May-01 5:50
suss21-May-01 5:50 
GeneralRe: Additional Toolbar in WinCE Pin
Anders Molin21-May-01 6:44
professionalAnders Molin21-May-01 6:44 
QuestionFixed Size Formview ??? Pin
2sky21-May-01 5:40
2sky21-May-01 5:40 
AnswerRe: Fixed Size Formview ??? Pin
Igor Sukhov21-May-01 8:00
Igor Sukhov21-May-01 8:00 
GeneralRe: Fixed Size Formview ??? Pin
2sky21-May-01 10:37
2sky21-May-01 10:37 
GeneralRe: Fixed Size Formview ??? Pin
Igor Sukhov21-May-01 10:52
Igor Sukhov21-May-01 10:52 
GeneralRe: Fixed Size Formview ??? Pin
2sky21-May-01 11:15
2sky21-May-01 11:15 
GeneralColours Pin
21-May-01 5:38
suss21-May-01 5:38 
GeneralRe: Colours Pin
Igor Sukhov21-May-01 7:52
Igor Sukhov21-May-01 7:52 
GeneralHEEELP!!!! Pin
21-May-01 4:51
suss21-May-01 4:51 
GeneralRe: HEEELP!!!! Pin
Tomasz Sowinski21-May-01 5:06
Tomasz Sowinski21-May-01 5:06 

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.