Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Michele Cillo
|
Jul 11, 2008 - 11:09 AM
|
Hi support,
I found the problem in subject. My configuration is: Visual Studio 2003
MDI Application with CExtTabMdiOneNoteWnd tab page manager
ProfUIS 2.84 prerelease (with CExtResizableDialog focus fix)
When I switch to one of the Office 2007 Styles and open a new Child Window the print preview toolbar isn’t here. If I activate another child window and after return on the former, magically the toolbar reappears.
P.S. I oveloaded CExtPPVW_Printable::OnInitializePrintPreviewToolBar();for adding more buttons to toolbar, calling parent version of course: void CSuiteReportPrintViewSimple::OnInitializePrintPreviewToolBar()
{
CExtPPVW_Printable::OnInitializePrintPreviewToolBar();
...
}
All other styles work fine.
|
|
Michele Cillo
|
Jul 14, 2008 - 4:57 AM
|
Hi, after your answer I investigated more carefully this bug, and I found that MDIChildWnd style assignment in its PreCreateWindow generated it. For clarity my styles were BOOL CSuiteChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
| FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
return _CSuiteChildFrameBase::PreCreateWindow(cs);
} where typedef CExtNCW < CMDIChildWnd > _CSuiteChildFrameBase;
class SUITEDLGLIB_EXPORT CSuiteChildFrame : public _CSuiteChildFrameBase
{
...
}; If I change code in BOOL CSuiteChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
// | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
return _CSuiteChildFrameBase::PreCreateWindow(cs);
} all works fine. Sorry for the inconvenience and thanks for the great support. Good work
|
|
Technical Support
|
Jul 12, 2008 - 9:16 AM
|
There is not enough information in your message for reproducing the problem. We tried to run DrawCli sample application, invoke print-preview mode and switch different paint managers. We didn’t detected any problems with toolbar. Is it possible to reproduce toolbar problem in the DrawCli sample application if you put your code snippets into it?
|
|