// 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()"?