Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 7:47
Mark Salsbery24-Apr-07 7:47 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 8:48
gurucplusplus24-Apr-07 8:48 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 8:56
Mark Salsbery24-Apr-07 8:56 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 9:09
gurucplusplus24-Apr-07 9:09 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 9:30
Mark Salsbery24-Apr-07 9:30 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 12:25
gurucplusplus24-Apr-07 12:25 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 12:42
Mark Salsbery24-Apr-07 12:42 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 13:25
gurucplusplus24-Apr-07 13:25 
I load the image from disk using IPicture renderring. This is my OnDraw(CDC* pDC) from CView class:

CMyDoc* pDoc = this->GetDocument();
ASSERT_VALID(pDoc);
HPALETTE hPal;
pDoc->m_pPicture->get_hPal(reinterpret_cast<ole_handle *="">(&hPal));
CPalette *pPalOld = NULL;

if (hPal != NULL)
{
TRACE(_T("CXpiProView::OnDraw - RealizePalette\n"));
pPalOld = pDC->SelectPalette(CPalette::FromHandle(hPal), FALSE);
pDC->RealizePalette();
}

RECT rc;
this->GetClientRect(&rc);
// display picture using IPicture::Render
pDoc->m_pPicture->Render(pDC->GetSafeHdc(),pDoc->m_sizeInPix.cx,
pDoc->m_sizeInPix.cy,0,pDoc->m_sizeInHiMetric.cy,
pDoc->m_sizeInHiMetric.cx,-pDoc->m_sizeInHiMetric.cy,&rc);
QuestionThe big leap to Vista and Visual Studio 2005 Pin
hcatech24-Apr-07 6:07
hcatech24-Apr-07 6:07 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
David Crow24-Apr-07 6:18
David Crow24-Apr-07 6:18 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn24-Apr-07 8:35
sitebuilderMichael Dunn24-Apr-07 8:35 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
hcatech25-Apr-07 3:48
hcatech25-Apr-07 3:48 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn25-Apr-07 13:52
sitebuilderMichael Dunn25-Apr-07 13:52 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
cp987624-Apr-07 17:51
cp987624-Apr-07 17:51 
QuestionDLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 6:04
Peter Saint24-Apr-07 6:04 
AnswerRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 7:59
Mark Salsbery24-Apr-07 7:59 
AnswerRe: DLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 8:32
Peter Saint24-Apr-07 8:32 
GeneralRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 8:55
Mark Salsbery24-Apr-07 8:55 
Questionplease help me(Networking)?!!! Pin
dSolariuM24-Apr-07 4:42
dSolariuM24-Apr-07 4:42 
QuestionRe: please help me(Networking)?!!! Pin
David Crow24-Apr-07 4:52
David Crow24-Apr-07 4:52 
QuestionAppropriate file buffer size Pin
Dustin Henry24-Apr-07 4:30
Dustin Henry24-Apr-07 4:30 
QuestionRe: Appropriate file buffer size Pin
David Crow24-Apr-07 4:32
David Crow24-Apr-07 4:32 
AnswerRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 4:46
Dustin Henry24-Apr-07 4:46 
QuestionRe: Appropriate file buffer size Pin
David Crow24-Apr-07 4:50
David Crow24-Apr-07 4:50 
AnswerRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 4:55
Dustin Henry24-Apr-07 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.