
Fri, 03/07/2008 - 15:25
Forums:
Hello all...
Currently I am working in Viewer3D wizard provided by open cascade...Now I want to switch to Dialog Based Application..Is it possible to draw the things in Dialog Window...Till now i have drawn in Document/View....
Fri, 03/21/2008 - 17:51
I also want to know how to realize, can anyone help me?
Thank you!
Fri, 03/21/2008 - 20:08
In MFC the following works:
In the dialog editor insert a CButton where you want the OCC view to be (CStatic would probably also work). Initializing OCC is the same, just use the CButton's HWND when creating the WNT_Window:
Handle(WNT_Window) aWNTWindow = new WNT_Window(myGraphicDevice, GetDlgItem(IDC_OCC_VIEW)->GetSafeHwnd(),
Quantity_NOC_GRAY);
Hope that helps,
Chris
Mon, 03/24/2008 - 12:19
Hi Chris..
Thank you for your reply..I am not able to get what your saying.
Can u please send me a sample code for drawing any simple shape in Dialog based application..
It will be very helpful for my project..Please Help me..
Thanks in Advance..
S.Vijayaragavan,
vjyragavan@yahoo.co.in
Mon, 03/24/2008 - 12:28
Hi Chris..
I am new to Open Cascade..Can u please send me a sample code for drawing simple shapes in Dialog Based Application..
Thanks in Advance,
S.Vijayaragavan.
vjyragavan@yahoo.co.in