Originally posted by: Vcer Wang
Hi! Tao Zhu
Thanks for your work.
when i drag any graphic objects such as text, rectangle, system'resource will go out. but after closing this application, the resource will be recovered.
i find the sentance int the body of CNetworkView::OnDraw(CDC* pDC)
{
.......
CFont *pOldFont=(CFont *)pDC->SelectObject(&font);
.......
}
should be
CFont *pOldFont=(CFont *)pDrawDC->SelectObject(&font);
after i modify it, the application is good.
Vcer Wang.
Reply
Originally posted by: Majid Shahabfar
Hi,
I wanna compile your code but I don't have BCGControlBar library in my computer.
Could you please create the non BCG version of your project?
You can email me your changed code.
Thank you in advance and I'm looking forward to hearing from you at your earliest convenience.
Yours sincerely.
Majid Shahabfar
shahabfar@safineh.net
Originally posted by: DaeGun
I successed comping but don`t work
"access violation" message show!!
i want to do this code working
please tell me why?
Reply
Originally posted by: Hidde Wallaart
Thanks Tao Zhu for sharing this very good program with us. I am impressed by the amount of work you put into this. It not only shows us how to unlash the many capabilities of GDI+ but also shows how to manage a multitude of graphical objects in a sensible way.
With more that 70 classes and so many different options this program will take time to get familiar with. On the other hand, it is very rare that any developer gives away the sources for such a comprehensive program. Many kudos for this!
I particularly liked your HatchBrush pattern picker. I was about to make one myself to explore the different options they give.
There are some improvements that can be made to this program, such as adding rotation and scaling, taking out the BCG stuff, adding variable text size etc., but I forgive you for not doing this. Maybe this is better left as an excercise for your readers so they can contribute to your next release?
Reply
Originally posted by: Paul
The paste operation works in the original drawcli, but it is broken in both JTDraw 1.0/2.0.
Reply
Originally posted by: Rong Yao
I believe it is a cool project, however, could you please inclue library "bcgcb" so I can fully access its power? :-) Thanks!
ReplyOriginally posted by: Zeng Kong
Compiling...
StdAfx.cpp
d:\program files\microsoft sdk\include\gdiplusenums.h(28) : error C2146: syntax error : missing ';' before identifier 'GraphicsState'
d:\program files\microsoft sdk\include\gdiplusenums.h(28) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
draw.exe - 2 error(s), 0 warning(s)
Someone could help me to slove this problem.
Originally posted by: martin
Rotate Function >>>>>>>>>>>
Great!!! How about add rotate object?
Originally posted by: Andargor
Hello Tao,
Congratulations on a great example! I'm a long time UNIX developer, but I dabble a bit in Windows when necessary. I have to admit that my MFC is not up to snuff.
I would therefore would like some pointers on how to modify your program for a specific application.
I'm trying to annotate images by defining "regions" that are overlayed. The rectangles, circles, etc... that your program draws are perfect for that. I was toying with the Kodak ImgEdit ActiveX control which does that, but it's old and quirky, and doesn't allow me the control over each event that I want to have (like when a rectangle is drawn)
I however don't know how to put a background image in the form on load. I actually am trying to find out where everything happens, you program is fairly complex for someone like me :) I don't need to edit the image, I just need it in the background, occupying the whole window if possible (scrolling is ok)
Also, what would be an appropriate place to keep track of where each drawn element is in the page?
I'm not asking for you to spoonfeed me, I will continue scrutinizing your code, but any help would be appreciated.
Regards and keep up the good work for us MS newbies,
Andargor
ReplyOriginally posted by: JD
If anyone knows about the way, please let me know.
I am so grateful that you share your nice idea, but need to inactivate your fatmatbar(line style, width, and arrow toolbar button) with gray color when you open your program without any active page.
You've handled the toolbar buttons in MainFrame, but I hope to know the way to handle them in the ChildFrame.
God bless you..
Reply