ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  when i use zoomscrolltrack2 demo , and getit to other MFC project!!! help!!
Posted by xiaoming on Mar-18-2013 17:05
Attachments:
when i use zoomscrolltrack2 demo , and getit to other MFC project!!!

and now the object has oher lib about skin,

so  there has a problem:

the user Interface is Flicker,

so i write these codes on OnInitDialog:

SetWindowLong(GetSafeHwnd(),GWL_EXSTYLE,GetWindowLong(GetSafeHwnd(),GWL_EXSTYLE)|WS_CLIPCHILDREN);


but  here has a new problem:

wen i use the ZoomIn button get a black box,but the box under the viewImg。

please help!!!!
1111111111111111111.jpg

  Re: when i use zoomscrolltrack2 demo , and getit to other MFC project!!! help!!
Posted by Peter Kwan on Mar-19-2013 05:23
Hi xiaoming,

May be you can try to use WS_EX_COMPOSITED to enable double buffering to see if it still flickers.

Regards
Peter Kwan

  Re: when i use zoomscrolltrack2 demo , and getit to other MFC project!!! help!!
Posted by xiaoming on Mar-19-2013 09:42
oh! thx, now  it not Flicker 。。。。。。。。BUT  the wen i use the ZoomIn button get a black box,but the box under the viewImg!!!!!!!!!!!!please help

  Re: when i use zoomscrolltrack2 demo , and getit to other MFC project!!! help!!
Posted by Peter Kwan on Mar-20-2013 00:54
Hi xiaoming,

In the orignal sample code, the chart does not flicker, and the selection rectangle is above the chart.

For your case, the issue may be specific to the code you are using. Without your real code, it is hard to know the exact issue. Is it possible to email an example to me (may be modify the original ChartDirector sample code to create an example that can show the problem)? My email is pkwan@advsofteng.net

Regards
Peter Kwan