Click here to Skip to main content
15,887,821 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDomain name Pin
Riily7-Sep-05 23:53
Riily7-Sep-05 23:53 
AnswerRe: Domain name Pin
ThatsAlok8-Sep-05 1:16
ThatsAlok8-Sep-05 1:16 
AnswerRe: Domain name Pin
Aamir Butt8-Sep-05 1:46
Aamir Butt8-Sep-05 1:46 
AnswerRe: Domain name Pin
ThatsAlok8-Sep-05 18:08
ThatsAlok8-Sep-05 18:08 
QuestionImage from CDC Pin
lanifis7-Sep-05 23:27
lanifis7-Sep-05 23:27 
AnswerRe: Image from CDC Pin
Mircea Puiu8-Sep-05 0:31
Mircea Puiu8-Sep-05 0:31 
AnswerRe: Image from CDC Pin
John R. Shaw8-Sep-05 23:50
John R. Shaw8-Sep-05 23:50 
GeneralRe: Image from CDC Pin
lanifis11-Sep-05 21:44
lanifis11-Sep-05 21:44 
thx for the fast answers, works better now but something is still wrong. i used your solution john, here is my code :

BOOL CGALWaveView::OnEraseBkgnd(CDC* pDC)
{
return TRUE;
}

void CGALWaveView::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
CSize sizeTotal;
CRect rect;
this->GetClientRect(&rect);
CDC pDC;
pDC.CreateCompatibleDC(&pDC);
//m_background is the image this->m_background.CreateCompatibleBitmap(&pDC,rect.Width()*GetDocument()->m_zoomFactor,rect.Height()*GetDocument()->m_zoomFactor);
pDC.SelectObject(&m_background);
OnDraw(&pDC);
sizeTotal.cx = rect.Width()*(long)GetDocument()->m_zoomFactor;
sizeTotal.cy = rect.Height();
SetScrollSizes(MM_TEXT, sizeTotal);
}

void CGALWaveView::OnDraw(CDC* pDC) {
CRect rect;
this->GetClientRect(&rect);
int zoom = GetDocument()->m_zoomFactor;
if (m_isDrawn==FALSE || m_zoomChanged==TRUE) {
...some drawing...
m_isDrawn=TRUE;
m_zoomChanged=FALSE;
}
else {
CDC* temp=NULL;
pDC->BitBlt(0,0,rect.Width()*zoom,rect.Height()*zoom,temp,0,0,SRCCOPY);
pDC->ExcludeClipRect(0,0,rect.Width()*zoom,rect.Height()*zoom);
}


now i got the problem that only the visible part is drawn, and whenever i scroll left or rigth, there is only white background.
any ideas?
thx
christian
QuestionDialog for server and client Pin
Member 21610047-Sep-05 23:18
Member 21610047-Sep-05 23:18 
AnswerRe: Dialog for server and client Pin
ThatsAlok7-Sep-05 23:21
ThatsAlok7-Sep-05 23:21 
AnswerRe: Dialog for server and client Pin
David Crow8-Sep-05 2:53
David Crow8-Sep-05 2:53 
GeneralRe: Dialog for server and client Pin
Member 21610048-Sep-05 15:07
Member 21610048-Sep-05 15:07 
Questionsetting bitmap images on push buttons Pin
sayup7-Sep-05 21:45
sayup7-Sep-05 21:45 
AnswerRe: setting bitmap images on push buttons Pin
nguyenvhn7-Sep-05 22:11
nguyenvhn7-Sep-05 22:11 
AnswerRe: setting bitmap images on push buttons Pin
ThatsAlok7-Sep-05 23:18
ThatsAlok7-Sep-05 23:18 
AnswerRe: setting bitmap images on push buttons Pin
Eytukan7-Sep-05 23:59
Eytukan7-Sep-05 23:59 
AnswerRe: setting bitmap images on push buttons Pin
Eytukan8-Sep-05 0:02
Eytukan8-Sep-05 0:02 
AnswerRe: setting bitmap images on push buttons Pin
Lefteris_RG31208-Sep-05 1:24
Lefteris_RG31208-Sep-05 1:24 
AnswerRe: setting bitmap images on push buttons Pin
David Crow8-Sep-05 2:54
David Crow8-Sep-05 2:54 
Questionwintrust.h Pin
sunit57-Sep-05 21:21
sunit57-Sep-05 21:21 
AnswerRe: wintrust.h Pin
nguyenvhn7-Sep-05 22:07
nguyenvhn7-Sep-05 22:07 
GeneralRe: wintrust.h Pin
sunit57-Sep-05 22:48
sunit57-Sep-05 22:48 
GeneralRe: wintrust.h Pin
toxcct7-Sep-05 22:53
toxcct7-Sep-05 22:53 
AnswerRe: wintrust.h Pin
ThatsAlok7-Sep-05 23:17
ThatsAlok7-Sep-05 23:17 
GeneralRe: wintrust.h Pin
Eytukan8-Sep-05 0:23
Eytukan8-Sep-05 0:23 

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.