Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Scan for new disk drives? Pin
David Crow30-Jun-05 9:12
David Crow30-Jun-05 9:12 
QuestionHow to draw gutter area to left of CRichEditCtrl please Pin
James197630-Jun-05 8:11
James197630-Jun-05 8:11 
GeneralCan't Undock my CDialogBar Pin
NTense30-Jun-05 7:57
NTense30-Jun-05 7:57 
GeneralRe: Can't Undock my CDialogBar Pin
Jose Lamas Rios30-Jun-05 18:40
Jose Lamas Rios30-Jun-05 18:40 
GeneralWriting keyboard directly Pin
willken30-Jun-05 7:10
willken30-Jun-05 7:10 
GeneralQuestion about...ehh, i don't even know Pin
toxcct30-Jun-05 6:51
toxcct30-Jun-05 6:51 
GeneralRe: Question about...ehh, i don't even know Pin
Jose Lamas Rios30-Jun-05 7:04
Jose Lamas Rios30-Jun-05 7:04 
GeneralRe: Question about...ehh, i don't even know Pin
toxcct30-Jun-05 7:19
toxcct30-Jun-05 7:19 
Jose Lamas Rios wrote:
Could you or Mr Pazzuzu post the code for ex03aView.cpp::OnDraw?

sure, here it is (pssst, there's no ex03aView.cpp fil e in the project WTF | :WTF: ; i found this into pagesView.cpp) :
void CpagesView::OnDraw(CDC* pDC)
{
   CpagesDoc* pDoc = GetDocument();
   CSize sizeTotal;
   // default scrollsizes to 80 chars X 80 lines
   sizeTotal.cx = 80; 
   sizeTotal.cy = 80;

   //Client Rectangle Size.
   CRect rect;
   GetClientRect(&rect);   
	
   //Creating a temporary Dc.
   MemDc tempDC(pDC,&rect);

   	int pageWidth = 800;
	int pageHeight = 800;
	int pageGap = 5;
	int pageNumber =3;
	SIZE	size;
	size.cx = 1000;
	size.cy = (pageHeight*3)+100;

	//First Page	   
	tempDC->Rectangle(CRect(0,0,pageWidth,pageHeight));	  
	tempDC->TextOut(0,pageGap,"This is the first line on the FirstPage");

   

   sizeTotal.cx *= MulDiv(m_textMetrics.tmAveCharWidth, m_iZoomFactor, 100);
   sizeTotal.cy *= MulDiv(m_textMetrics.tmHeight, m_iZoomFactor, 100);
   SetScrollSizes(MM_TEXT, sizeTotal);
	  
}

thanks for answering Big Grin | :-D Rose | [Rose]


TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: Question about...ehh, i don't even know Pin
Jose Lamas Rios30-Jun-05 8:37
Jose Lamas Rios30-Jun-05 8:37 
GeneralRe: Question about...ehh, i don't even know Pin
toxcct30-Jun-05 20:27
toxcct30-Jun-05 20:27 
GeneralDifference on CSingleLock ::Lock and CSyncObject::Lock Pin
yccheok30-Jun-05 6:29
yccheok30-Jun-05 6:29 
GeneralCritical Section vs. Lock Pin
Peter Weyzen30-Jun-05 9:26
Peter Weyzen30-Jun-05 9:26 
GeneralRe: Difference on CSingleLock ::Lock and CSyncObject::Lock Pin
PJ Arends30-Jun-05 10:05
professionalPJ Arends30-Jun-05 10:05 
GeneralCList Box controls MFC Pin
goodoljosh30-Jun-05 5:44
goodoljosh30-Jun-05 5:44 
GeneralRe: CList Box controls MFC Pin
Jose Lamas Rios30-Jun-05 5:52
Jose Lamas Rios30-Jun-05 5:52 
GeneralRe: CList Box controls MFC Pin
David Crow30-Jun-05 5:57
David Crow30-Jun-05 5:57 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:12
goodoljosh30-Jun-05 6:12 
GeneralRe: CList Box controls MFC Pin
David Crow30-Jun-05 6:19
David Crow30-Jun-05 6:19 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:30
goodoljosh30-Jun-05 6:30 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:35
goodoljosh30-Jun-05 6:35 
GeneralGmail Drive namespace extension Pin
Dreaser$30-Jun-05 4:58
Dreaser$30-Jun-05 4:58 
GeneralRe: Gmail Drive namespace extension Pin
Dreaser$1-Jul-05 0:14
Dreaser$1-Jul-05 0:14 
QuestionHow to position a toolbar??? Pin
IlanTal30-Jun-05 4:47
IlanTal30-Jun-05 4:47 
AnswerRe: How to position a toolbar??? Pin
Cedric Moonen30-Jun-05 4:54
Cedric Moonen30-Jun-05 4:54 
GeneralRe: How to position a toolbar??? Pin
IlanTal1-Jul-05 8:37
IlanTal1-Jul-05 8:37 

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.