Re: Print preview beyond the regular framework
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 20 Mar 2011 13:49:02 -0500
So did you single-step into AfxGetTopLevelFrame and see what it is returning?
Part of the problem I see in the new framework is that it makes a huge number of
unsustainable assumptions about reality, more so than the old framework made.
joe
On Sun, 20 Mar 2011 13:24:45 +0100, Hans-J. Ude <news@xxxxxxxxxxxxxxxxxxxx> wrote:
I went a little deeper in it and compared it step by step to regularJoseph M. Newcomer [MVP]
SDI dummy application. The first significant difference is here:
[MFC]
void CFrameWndEx::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState*
pState)
{
ASSERT_VALID(this);
CFrameWndEx* pMainFrame = DYNAMIC_DOWNCAST(CFrameWndEx,
AFXGetTopLevelFrame(this));
if (pMainFrame != NULL)
{
pMainFrame->SetPrintPreviewFrame(bPreview ? this : NULL);
}
[/MFC]
where pMainFrame is NULL in my app but not in the dummy SDI. But no
solution yet.
Hans
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Print preview beyond the regular framework
- From: Hans-J . Ude
- Re: Print preview beyond the regular framework
- References:
- Print preview beyond the regular framework
- From: Hans-J . Ude
- Re: Print preview beyond the regular framework
- From: Hans-J . Ude
- Print preview beyond the regular framework
- Prev by Date: Re: Print preview beyond the regular framework
- Next by Date: Re: Print preview beyond the regular framework
- Previous by thread: Re: Print preview beyond the regular framework
- Next by thread: Re: Print preview beyond the regular framework
- Index(es):