You can either break the bitmap into bits and get windows to handle it, or you do do owner draw, and just plot different parts of the bitmap. You already know how to draw bits on the screen, so it won't be much harder.
There should be plenty of owner draw examples on CP, and even some simple ones (which is all you're after) on MSDN.
I have a mfc application that i run with different resolution. So i want to change size of controls as resolutions rate.
When the resolution increases, size of controls and font must increase with same rate between new and old resolution. please tell me how to make it simply. Thanks
These operations were all successful in the sense that hr == S_OK.
After getting the WebControl object, I want to show/activate it using our IOleClientSite implementation:
hr = iOleObject_->SetClientSite(&iOleSite_);
const RECT rect = GetClientRect();
hr = iOleObject_->DoVerb(OLEIVERB_SHOW, NULL, &iOleSite_, 0, GetHwnd(), &rect);
These operations were also successful in the sense that hr == S_OK. However, the end result (the IWebBrowser2::Navigate2 failure) occurs also if OLEIVERB_SHOW is changed to OLEIVERB_UIACTIVATE or OLEIVERB_INPLACEACTIVATE.
Next, I dig the IWebBrowser2 out of the WebControl object and checks if the browser HWND is sane:
Again, these operations were successful in the sense that hr == S_OK. Also, the browser HWND is equal in both method 1 and 2 and its parent is indeed our host control. I see this as some kind of indication that something works.
But... the thing I need doesn't work; the precious IWebBrowser2::Navigate2:
There's a article here on how to host the web browser via C code and the author does an *EXCELLENT* job of walking you through exactly what has to happen - try and look for that, maybe it will off you hints as to what's missing.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!