Ronnie_Shmuel
asked on
CFormView on CDialogBar
a simple one...
How do i put a Cview (or CView derived class, for example CFormView) on a CDialogBar ?
TNX...
Ronnie
How do i put a Cview (or CView derived class, for example CFormView) on a CDialogBar ?
TNX...
Ronnie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you could call the function or write the functions contents after you create the dialogbar. your dialogbar maybe created in CMainFrame::OnCreate(), so after the dialogbar.create is called, you call the CreateEditViewInDialogBar( &dialogbar ) . Assuming dialogbar is the CDialogBar object you use.
IDC_PLACEHOLDER was put in to illustrate how to place the view in your dialogbar in a pre-defined space. For this, you place a static text on your dialogbar resource using the resource editor. Then go to the static properties and change the ID to IDC_PLACEHOLDER. This will ensure tht the view is created where the static control was placed during design time. or if you know the rectangle that u want to place the view inside the dialogbar, skip this part, and give your rectangle in the pWnd->Create() function.
IDC_PLACEHOLDER was put in to illustrate how to place the view in your dialogbar in a pre-defined space. For this, you place a static text on your dialogbar resource using the resource editor. Then go to the static properties and change the ID to IDC_PLACEHOLDER. This will ensure tht the view is created where the static control was placed during design time. or if you know the rectangle that u want to place the view inside the dialogbar, skip this part, and give your rectangle in the pWnd->Create() function.
ASKER
Priyesh,
Thanks for the answers, of course you will get the points, but...
i wonder why not directly connect the view to the CDialogbar (as a child, like a child window, becuase it is a CWnd derived) ? why do we have to use the CFrameWnd ? if so... how do i do that ?
TNX...(again) !
Thanks for the answers, of course you will get the points, but...
i wonder why not directly connect the view to the CDialogbar (as a child, like a child window, becuase it is a CWnd derived) ? why do we have to use the CFrameWnd ? if so... how do i do that ?
TNX...(again) !
I am not sure how to create a standalone CView derived class. Infact, i have not thought about that till u asked this question. well, i have no idea now my friend. maybe somebody else has an answer to this.
ASKER
Please explain when do i call the function 'CreateEditViewInDialogBar
TNX...