Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is the meaning of " __cdecl time(time_t *)"? Pin
Rory Solley7-Apr-04 21:50
Rory Solley7-Apr-04 21:50 
QuestionWhat does Runtime License mean? Pin
anderslundsgard7-Apr-04 20:42
anderslundsgard7-Apr-04 20:42 
GeneralHELP ( VC++ 6.0 IDE ) Pin
Renjith Ramachandran7-Apr-04 20:23
Renjith Ramachandran7-Apr-04 20:23 
GeneralRe: HELP ( VC++ 6.0 IDE ) Pin
Rory Solley7-Apr-04 21:03
Rory Solley7-Apr-04 21:03 
GeneralRe: HELP ( VC++ 6.0 IDE ) Pin
spforeman7-Apr-04 22:19
spforeman7-Apr-04 22:19 
GeneralRe: HELP ( VC++ 6.0 IDE ) Pin
John M. Drescher8-Apr-04 0:19
John M. Drescher8-Apr-04 0:19 
Questionoutlook express addin?? Pin
xxhimanshu7-Apr-04 19:55
xxhimanshu7-Apr-04 19:55 
Generalprinting a diialog and its controls Pin
maniprabha7-Apr-04 17:55
maniprabha7-Apr-04 17:55 
hi,
Im developing a VC++ application in which one requirement is to print the dialog with its control(basically edit box and static text).
Im using the followinf code for this purpose.

CPrintDialog printDlg(FALSE, PD_ALLPAGES | PD_RETURNDC, NULL);<br />
     // Initialize some of the fields in PRINTDLG structure.<br />
     printDlg.m_pd.nMinPage = printDlg.m_pd.nMaxPage = 1;<br />
     printDlg.m_pd.nFromPage = printDlg.m_pd.nToPage = 1;<br />
     // Display Windows print dialog box.<br />
     printDlg.DoModal();<br />
     // Obtain a handle to the device context.<br />
     HDC hdcPrn = printDlg.GetPrinterDC();<br />
     if (hdcPrn != NULL) {<br />
          CDC *pDC = new CDC;<br />
          pDC->Attach (hdcPrn);      // attach a printer DC<br />
          pDC->StartDoc("job");      // begin a new print job<br />
          pDC->StartPage();          // begin a new page<br />
          Print(pDC,PRF_CHILDREN|PRF_CLIENT|PRF_ERASEBKGND);<br />
          pDC->EndPage();            // end a page<br />
          pDC->EndDoc();             // end a print job<br />
          pDC->Detach();             // detach the printer DC<br />
          delete pDC;<br />
     }



The problem im facing is that the content of the print is very small.Any idea where im wrong.I need help to print in a enlarged mode(i.e)bigger print
Questionwhy to use &quot;pDC-&gt;SelectObject(pOldFont)&quot; usually? Pin
vividtang7-Apr-04 17:46
vividtang7-Apr-04 17:46 
AnswerRe: why to use &quot;pDC-&gt;SelectObject(pOldFont)&quot; usually? Pin
Joe Woodbury7-Apr-04 18:06
professionalJoe Woodbury7-Apr-04 18:06 
GeneralRe: why to use &quot;pDC-&gt;SelectObject(pOldFont)&quot; usually? Pin
Mike Dimmick7-Apr-04 23:44
Mike Dimmick7-Apr-04 23:44 
GeneralRe: why to use &quot;pDC-&gt;SelectObject(pOldFont)&quot; usually? Pin
Joe Woodbury8-Apr-04 11:31
professionalJoe Woodbury8-Apr-04 11:31 
Generalwhere can i get the setup files for sdk Pin
denly7-Apr-04 17:44
denly7-Apr-04 17:44 
GeneralRe: where can i get the setup files for sdk Pin
David Crow8-Apr-04 2:11
David Crow8-Apr-04 2:11 
GeneralCMonthCalCtrl::SizeMinReq() Pin
User 5838527-Apr-04 17:32
User 5838527-Apr-04 17:32 
GeneralSetScrollSizes. Pin
Member 9541237-Apr-04 17:28
Member 9541237-Apr-04 17:28 
GeneralRe: SetScrollSizes. Pin
John R. Shaw7-Apr-04 19:21
John R. Shaw7-Apr-04 19:21 
GeneralUSB Help Plz Pin
MrNiceBerG7-Apr-04 17:07
MrNiceBerG7-Apr-04 17:07 
GeneralDirectory Information Pin
IceBerG717-Apr-04 16:27
IceBerG717-Apr-04 16:27 
GeneralRe: Directory Information Pin
valikac7-Apr-04 16:51
valikac7-Apr-04 16:51 
GeneralRe: Directory Information Pin
IceBerG717-Apr-04 17:57
IceBerG717-Apr-04 17:57 
GeneralRe: Directory Information Pin
Joe Woodbury7-Apr-04 18:13
professionalJoe Woodbury7-Apr-04 18:13 
GeneralAbout msdxm.ocx Pin
feiyanghu7-Apr-04 16:24
feiyanghu7-Apr-04 16:24 
GeneralFile Database Access Method Pin
IceBerG717-Apr-04 15:07
IceBerG717-Apr-04 15:07 
GeneralRe: File Database Access Method Pin
Joe Woodbury7-Apr-04 15:52
professionalJoe Woodbury7-Apr-04 15: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.