// put the HBITMAP info into the CBitmap (but not the bitmap itself)
m_st1.GetClientRect( &rectStaticClient );
m_size.cx = rectStaticClient.Width(); // zero based
m_size.cy = rectStaticClient.Height(); // zero based
// Convert to screen coordinates using static as base,
// then to DIALOG (instead of static) client coords
// using dialog as base
m_st1.ClientToScreen( &rectStaticClient );
// Added to draw a rectangle
i'm loading bitmap image using LoadImage(). Rectangle image is coming underneath of the bitmap image.
I am Developing a Dialog based application, to which i have applied a skin.
after applying the skin i could not able to Activate the Main Menu through keyboard, But i can with mouse. i have Created the Menu filed as
i am able to handle the accelerators and also the Menu(through Mouse)
But unable to Access the Menu items by keyboard like Alt F to activate File Menu etc,....
I'm writing an 3D editor and I'm trying to get my viewport arrangement running.
I thought I should create it like this:
-- CViewport x 4 (CView)
---- CViewportControl (CFormView)
---- CCameraView (CView. My CD3D9View actually..)
I then place four CViewport in a splitter window. The problem is that i don't know how to place the CViewportControl FormView inside the CViewport view. For some reason I had no problems with creating the CCameraView but the CFormView is a b**ch... I successfully added it with an odd hack but whenever I clicked it the came crashed with an odd assertion. How do I create it when there is no "Create()"?
The thing is that I'm a total newbie with MFC so I don't really know how to do it. The CViewport "view" doesn't have to be a view I suppose, only the CCameraView has to be a view since it's the only part of the "framework" that actually display data from the document. What class should i derive CViewport from instead and how do I add controls (a combo and a checkbox) to a dockable toolbar?
Could anyone guide me how I should structure the classes to make a viewport window like the ones you see in 3dsmax, maya etc.
I hope my questions doesn't sound too confusing, though I AM really confused about MFC. Whatever I do seems to cause assertions and trace errors or odd memory exceptions
Last Visit: 26-Jan-20 22:50 Last Update: 26-Jan-20 22:50