Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » two simple questions Collapse All
Subject Author Date
Massimo Germi Jun 15, 2006 - 3:10 AM

1) In OnPaint method, of CForm view derived class, I have g_PaintManager->PaintDocumentClientAreaBkgnd( dcPaint, this ), the windows in not paint correctly when I scroll it.

2) I have inserted CTreeCtrl derived class in CExtControlBar, I’m not able to display icon and, when I compile in release, I don’t see mouse during movement.

Coult you have any suggestions?

tx a lot

Technical Support Jun 15, 2006 - 5:34 AM

1) The g_PaintManager->PaintDocumentClientAreaBkgnd() method doesn’t support scrolling.

2) It is not completely clear what the problem is. Which icon is not displayed? Would you send us some screenshot(s) or a test project?

Massimo Germi Jun 16, 2006 - 2:23 AM

HI, I solved the problem about icon in CTreeCtrl, was my problem.

The problem of the mouse persist and I not understand why. I’m using VC8 - ProfUIS 2.5.4. I have a CTreeCtrl*** inside of CExtControlBar.
If I start my exe inside of VC, the mouse is display correctly (when is over CTreeCtrl), indipendently if I compile in Debug or in Release. If I start the program outside af VC (double click on exe icon), the mouse in not displayed when is over CTreeCtrl. Have you experience of similar error in ProfUIS?
Unfortunately I cannot send you my proyect because is very big and it has integration with database and other object.


***
I have created CTreeCtrl as a child window of CWnd derived class, this class is created as child of CExtControlBar.

I appreciate any help.

Tx a lot

Technical Support Jun 16, 2006 - 12:55 PM

No, we have never encountered the similar problems before and no our customers reported about these problems. We have several samples in Prof-UIS and they are working correctly. Would you try to create a small project and reproduce the problem?

Massimo Germi Jun 15, 2006 - 7:56 AM

I seen g_PaintManager->PaintDocumentClientAreaBkgnd() method doesn’t support scrolling. There is a method I can use to implement it?

tx

Technical Support Jun 15, 2006 - 12:06 PM

All the background painting methods in all paint managers were designed for painting non-scrollable content. So, you should do the following:

1) Redraw your view window when you receive the WM_HSCROLL and WM_VSCROLL messages.

2) Handle the WM_PAINT message and invoke the paint manager for painting the background like you need.

3) In the the WM_PAINT message handler, invoke the dc.SetViewPortOrg( 0, 0 ) code before calling the paint manager’s API.