engllf
asked on
Bitmap as background of a CMiniFrame
How do I load a huge bitmap to be the background of a CMiniFrame?
Below is the code i used to create the miniframe.
int CMainFrame::OnCreate(LPCRE ATESTRUCT lpCreateStruct)
{
...etc..
CString strClass = AfxRegisterWndClass(CS_VRE DRAW|CS_HR EDRAW,::Lo adCursor(N ULL, IDC_ARROW),(HBRUSH)::GetSt ockObject( WHITE_BRUS H),::LoadI con(NULL,I DI_APPLICA TION));
CRuntimeClass * pRuntimeClass = RUNTIME_CLASS(CMyMiniFrame );
MyMiniFrame = (CMyMiniFrame*)pRuntimeCla ss->Create Object();
MyMiniFrame->Create(strCla ss,_T("My MiniFrame Window"), MFS_MOVEFRAME, CRect(50,50,200,130));
}
Below is the code i used to create the miniframe.
int CMainFrame::OnCreate(LPCRE
{
...etc..
CString strClass = AfxRegisterWndClass(CS_VRE
CRuntimeClass * pRuntimeClass = RUNTIME_CLASS(CMyMiniFrame
MyMiniFrame = (CMyMiniFrame*)pRuntimeCla
MyMiniFrame->Create(strCla
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Do you have any sample code for OnPaint{},OnEraseBkgnd()?
I tried to write them but i simply get no where.
Thanks
I tried to write them but i simply get no where.
Thanks
ASKER