Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Critical bugs in 12.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Critical bugs in 12.0

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Critical bugs in 12.0
    Posted: 02 May 2008 at 5:01pm

uploads/20080505_155112_RibbonMDI_Probl.zip

Here, check out this sample. It contains all three bugs + that mystic alphaicon-problem described in another thread!
 
It should be fairly easy to fix them all with this master-sample ;)
 
 
 
Upgraded and got weird behavior. I really hope you can fix #1 and #2 immediately, as these particular bugs ruins my whole program
 
1) Report control.
CXTPReportControl::OnBeforePaste is completely broken! It should only get called on the actual drop, and NOT when entering the window. When my OnBeforePaste function is called, I perform a "is this record already used" by adding it to a lookup-set and checking it next time it is being dropped. When this check is done during "DragEnter" my checked condition will always be true when the actual drop occurs.
 
2) Ribbon-MDI.
If the main frame does NOT have WS_MAXIMIZEBOX-style, it is sized in such way that the taskbar is not visible.
It should behave as it did in XTP 11!
 
3) Ribbon-MDI.
If MDI-child does NOT have WS_BORDER-style, the CXTPTabClientWnd-workspace in the main frame is visible but not painted.
It should not be visible at all! (I removed the style and it works, but I sense underlying problems when I encounter bugs as this one.)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 1:21am
Hello,
Please send them to support@codejock.com with details and screenshots.
Thanks.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 3:52pm
Oleg, please update this thread when you know more about these bugs!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:26am
Hi,
 
0. As I was sure problem with alpha icons because you removed manifest from appliaction. Once again - ExctactIcon and ImageList support Alpha icons only when you run in Windows XP + have manifest in _your_ application (not our dll)
As you can see our samples  they have Alpha Icons support even for Windows 95 - because we don't have any system methods calls, but handle alpha icons manually. Use our methods instead ExtractIcons and ImageList.
 
to restore manifest add in attached sample in stdafx.h
 

#if (_MSC_VER > 1310) // VS2005

#if defined _M_IX86

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")

#elif defined _M_IA64

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")

#elif defined _M_X64

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")

#else

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

#endif

#endif

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:30am
0.b.  Never call pControl->SetCustomIcon in Update handler. it creates icon copy each time and can eat some CPU.
 
Better add icon to imagemanager and just call pControl->SetIconIndex(,,);
or at least add some check that icon was already set.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:36am
2. Actually now it works as it should.   You can check simple frame without ribbon and see same. previously it worked non-standard.
Instead

cs.style &= ~WS_MAXIMIZEBOX;

use

pMainFrame->ShowWindow(m_nCmdShow);

pMainFrame->UpdateWindow();

pMainFrame->ModifyStyle(WS_MAXIMIZEBOX, 0);

and now it works with standard and ribbon frames.
 
ps. user can still use Double click to restore it.
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:38am
3.
 
So just comment

EnableOffice2007Frame(this, ((CXTPMDIFrameWnd*)GetParentFrame())->GetCommandBars()->GetPaintManager());

line.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 2:47am

1. Yes, logic changed to allow find out what record user try to drag.

just override

BOOL CXTPReportControl::OnDrop(COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point)

instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 2:41am
Wohaaah! You're da man :). Thanks a lot!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.