Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I get a PropertyPage title without or before creating? Pin
PJ Arends5-Feb-06 9:55
professionalPJ Arends5-Feb-06 9:55 
GeneralRe: How can I get a PropertyPage title without or before creating? Pin
Eugene Pustovoyt5-Feb-06 19:19
Eugene Pustovoyt5-Feb-06 19:19 
QuestionFree Skin System Pin
Allad4-Feb-06 16:43
Allad4-Feb-06 16:43 
AnswerRe: Free Skin System Pin
EXTEIDE5-Feb-06 1:11
EXTEIDE5-Feb-06 1:11 
Questionmemory leak with dll Pin
Rhiakath4-Feb-06 14:43
Rhiakath4-Feb-06 14:43 
AnswerRe: memory leak with dll Pin
Stephen Hewitt4-Feb-06 18:29
Stephen Hewitt4-Feb-06 18:29 
AnswerRe: memory leak with dll Pin
Rama Krishna Vavilala5-Feb-06 6:47
Rama Krishna Vavilala5-Feb-06 6:47 
Questionprinter problem Pin
includeh104-Feb-06 14:25
includeh104-Feb-06 14:25 
I print 2 base lines:
1) from (0,0) to (300,0) - horz base line
2) from (0,0) to (0,300) - vert base line

but they are not at topmost and leftmost of printed page - there are margins at top and left.

do you know how to adjust the base lines from C++ or hardware (printer etc) settings to delete the margins to let the 2 base lines at topmost and leftmost of printed page?

---------------------------
followins are MFC code, please do a testing for me: if your printers have margins also?
---------------------------
CPrintDialog cp(0);
if(cp.DoModal()!=IDOK) return;

HDC hDC=0;

hDC=cp.CreatePrinterDC();
if(hDC==0) return;

CDC*pDC=CDC::FromHandle(hDC);
int iMapMode=pDC->SetMapMode(MM_LOENGLISH);

DOCINFO docInf;
memset(&docInf,0,sizeof(DOCINFO));
docInf.cbSize=sizeof(DOCINFO);

pDC->StartDoc(&docInf);
pDC->StartPage();

pDC->MoveTo(0,0);
pDC->LineTo(300,0);
pDC->MoveTo(0,0);
pDC->LineTo(0,-300);

pDC->EndPage();
pDC->EndDoc();

pDC->SetMapMode(iMapMode);
-------------------------
thx







A nice tool for optimizing your Microsoft html-help contents.

Includeh10
AnswerRe: printer problem Pin
Gary R. Wheeler5-Feb-06 2:04
Gary R. Wheeler5-Feb-06 2:04 
QuestionHelp with setting values to char arrays (strings); Pin
Coolarj104-Feb-06 10:07
Coolarj104-Feb-06 10:07 
AnswerRe: Help with setting values to char arrays (strings); Pin
Gary R. Wheeler4-Feb-06 10:54
Gary R. Wheeler4-Feb-06 10:54 
AnswerRe: Help with setting values to char arrays (strings); Pin
meinhard_risch4-Feb-06 13:14
meinhard_risch4-Feb-06 13:14 
AnswerRe: Help with setting values to char arrays (strings); Pin
Coolarj104-Feb-06 14:37
Coolarj104-Feb-06 14:37 
GeneralRe: Help with setting values to char arrays (strings); Pin
Gary R. Wheeler5-Feb-06 2:27
Gary R. Wheeler5-Feb-06 2:27 
GeneralRe: Help with setting values to char arrays (strings); Pin
meinhard_risch5-Feb-06 3:45
meinhard_risch5-Feb-06 3:45 
QuestionMFC Pin
sidkraft4-Feb-06 6:39
sidkraft4-Feb-06 6:39 
Questionhtml-based modless Windeow Pin
meinhard_risch4-Feb-06 6:22
meinhard_risch4-Feb-06 6:22 
AnswerRe: html-based modless Windeow Pin
EXTEIDE4-Feb-06 9:40
EXTEIDE4-Feb-06 9:40 
AnswerRe: html-based modless Windeow Pin
meinhard_risch4-Feb-06 13:32
meinhard_risch4-Feb-06 13:32 
GeneralRe: html-based modless Windeow Pin
EXTEIDE4-Feb-06 14:30
EXTEIDE4-Feb-06 14:30 
GeneralRe: html-based modless Windeow Pin
meinhard_risch5-Feb-06 3:40
meinhard_risch5-Feb-06 3:40 
GeneralRe: html-based modless Windeow Pin
EXTEIDE5-Feb-06 3:58
EXTEIDE5-Feb-06 3:58 
GeneralRe: html-based modless Windeow Pin
meinhard_risch9-Feb-06 10:48
meinhard_risch9-Feb-06 10:48 
QuestionAudio audition with WMP? Pin
Jim A. Johnson4-Feb-06 6:11
Jim A. Johnson4-Feb-06 6:11 
AnswerRe: Audio audition with WMP? Pin
EXTEIDE4-Feb-06 8:52
EXTEIDE4-Feb-06 8:52 

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.