Click here to Skip to main content
16,014,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
16-Jun-04 6:49
suss16-Jun-04 6:49 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
bikram singh16-Jun-04 7:24
bikram singh16-Jun-04 7:24 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
Member 1054638616-Jun-04 7:27
Member 1054638616-Jun-04 7:27 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
toxcct16-Jun-04 9:52
toxcct16-Jun-04 9:52 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
Henry miller17-Jun-04 3:28
Henry miller17-Jun-04 3:28 
GeneralEmail link Pin
marcomars16-Jun-04 5:58
marcomars16-Jun-04 5:58 
GeneralRe: Email link Pin
David Crow16-Jun-04 6:14
David Crow16-Jun-04 6:14 
Questionscroll the document? Pin
Nelson L.16-Jun-04 5:48
Nelson L.16-Jun-04 5:48 
Hi,

I made a small project and draw a graph and write a few lines on the display using CScrollView, the scrollbar works when the text exceed the windows.

To work on the print preview, after adding the following, the print preview looks ok, but the display fails even when I move the thumb scroll bar.

void CReaderView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo)
{
if (pDC->IsPrinting())
{
int pageHeight = pDC->GetDeviceCaps(VERTRES);
int OriginY = pageHeight * (pInfo->m_nCurPage-1);
pDC->SetViewportOrg(0, -OriginY);
}

CView::OnPrepareDC(pDC, pInfo);
}

I tried to add a WM_VSCROLL, and change the ViewportOrg, seems not working.

I also found if I replace the last line with
CScrollView::OnPrepareDC(pDC, pInfo); the effect is reversed.

Anyone could give me some hints on this?

Thanks.


GeneralFindWindow returning error 126 ERROR_MOD_NOT_FOUND Pin
Anonymous16-Jun-04 5:30
Anonymous16-Jun-04 5:30 
QuestionHow to implement Invalidation/Redraw pattern Pin
P. Gnana Prakash16-Jun-04 5:30
P. Gnana Prakash16-Jun-04 5:30 
AnswerRe: How to implement Invalidation/Redraw pattern Pin
Blake Miller16-Jun-04 13:38
Blake Miller16-Jun-04 13:38 
AnswerRe: How to implement Invalidation/Redraw pattern Pin
Johan Rosengren16-Jun-04 21:08
Johan Rosengren16-Jun-04 21:08 
GeneralBuilding a neural network Pin
pavanbabut16-Jun-04 5:20
pavanbabut16-Jun-04 5:20 
GeneralMessage Before window displayed Pin
sschilachi16-Jun-04 4:59
sschilachi16-Jun-04 4:59 
GeneralRe: Message Before window displayed Pin
Ravi Bhavnani16-Jun-04 5:00
professionalRavi Bhavnani16-Jun-04 5:00 
GeneralRe: Message Before window displayed Pin
sschilachi16-Jun-04 5:34
sschilachi16-Jun-04 5:34 
GeneralGetting the filesize of all files inside of a folder, quicker Pin
Dean Michaud16-Jun-04 4:55
Dean Michaud16-Jun-04 4:55 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
palbano16-Jun-04 5:53
palbano16-Jun-04 5:53 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
bikram singh16-Jun-04 6:03
bikram singh16-Jun-04 6:03 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Anonymous16-Jun-04 6:16
Anonymous16-Jun-04 6:16 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
palbano16-Jun-04 6:24
palbano16-Jun-04 6:24 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Dean Michaud16-Jun-04 10:59
Dean Michaud16-Jun-04 10:59 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Blake Miller16-Jun-04 13:42
Blake Miller16-Jun-04 13:42 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Tim Smith16-Jun-04 16:43
Tim Smith16-Jun-04 16:43 
QuestionHow to complile WMI andf ADSI with studio version 6 ? Pin
vgrigor116-Jun-04 4:19
vgrigor116-Jun-04 4:19 

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.