Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnew invokes VirtualAlloc Pin
George_George27-Jan-08 15:59
George_George27-Jan-08 15:59 
Generalhelp Pin
gentleguy27-Jan-08 15:47
gentleguy27-Jan-08 15:47 
GeneralRe: help Pin
Luc Pattyn27-Jan-08 16:23
sitebuilderLuc Pattyn27-Jan-08 16:23 
GeneralRe: help Pin
Cranky27-Jan-08 22:36
Cranky27-Jan-08 22:36 
QuestionPrinting text fields onto a form Pin
Henri27-Jan-08 13:36
Henri27-Jan-08 13:36 
GeneralRe: Printing text fields onto a form Pin
Mark Salsbery27-Jan-08 13:55
Mark Salsbery27-Jan-08 13:55 
GeneralRe: Printing text fields onto a form Pin
Nitheesh George27-Jan-08 17:33
Nitheesh George27-Jan-08 17:33 
GeneralRe: Printing text fields onto a form Pin
Henri6-Feb-08 5:30
Henri6-Feb-08 5:30 
I looked at SetTextAlign/GetTextAlign.
I did pDC->SetTextAlign ((TA_LEFT | TA_TOP | TA_NOUPDATECP));
from OnBeginPrinting.

Still prints off. I dont not know if I need to account for printer margins and if so how to do so.
I tried with accounting and without, as follows

void CMyFormView::MyOutStr (CDC *pDC, int x, int y, char *str)
{
int xpos, ypos, sz;

if (!(sz = strlen(str)))
return;

//xpos = x - r_xmargin; //account for margin
//xpos = x; //do not account
if (xpos < 0)
xpos = 0;

//ypos = y - r_ymargin;
//ypos = y;

r_xlast = xpos;
r_ylast = ypos;

pDC->TextOut (xpos, ypos, str, sz);
}
could not print to location I specified. Any clues, suggestions would be appreciated. Thanks.
Henri
Questionneed a lil help with hang man program Pin
Flash042927-Jan-08 13:29
Flash042927-Jan-08 13:29 
GeneralRe: need a lil help with hang man program Pin
Iain Clarke, Warrior Programmer27-Jan-08 23:55
Iain Clarke, Warrior Programmer27-Jan-08 23:55 
QuestionHow to prevent the list box of the combo box appear when catching the CBN_DROPDOWN message? Pin
Francisco José Sen del Prado27-Jan-08 13:29
Francisco José Sen del Prado27-Jan-08 13:29 
GeneralRe: How to prevent the list box of the combo box appear when catching the CBN_DROPDOWN message? Pin
Nitheesh George27-Jan-08 17:42
Nitheesh George27-Jan-08 17:42 
GeneralRe: How to prevent the list box of the combo box appear when catching the CBN_DROPDOWN message? Pin
Hamid_RT27-Jan-08 20:45
Hamid_RT27-Jan-08 20:45 
GeneralRe: How to prevent the list box of the combo box appear when catching the CBN_DROPDOWN message? Pin
Francisco José Sen del Prado27-Jan-08 20:50
Francisco José Sen del Prado27-Jan-08 20:50 
GeneralRe: How to prevent the list box of the combo box appear when catching the CBN_DROPDOWN message? Pin
Hamid_RT27-Jan-08 21:10
Hamid_RT27-Jan-08 21:10 
GeneralVideo Files to VCD\DVD Conversion Pin
Akin Ocal27-Jan-08 11:40
Akin Ocal27-Jan-08 11:40 
GeneralFile IO using Assembly and C Pin
Umer Sheikh27-Jan-08 10:27
Umer Sheikh27-Jan-08 10:27 
GeneralRe: File IO using Assembly and C Pin
Luc Pattyn27-Jan-08 11:51
sitebuilderLuc Pattyn27-Jan-08 11:51 
GeneralRe: File IO using Assembly and C Pin
Umer Sheikh27-Jan-08 12:02
Umer Sheikh27-Jan-08 12:02 
GeneralRe: File IO using Assembly and C Pin
Mark Salsbery27-Jan-08 12:12
Mark Salsbery27-Jan-08 12:12 
GeneralRe: File IO using Assembly and C Pin
Umer Sheikh27-Jan-08 12:20
Umer Sheikh27-Jan-08 12:20 
GeneralRe: File IO using Assembly and C Pin
Umer Sheikh27-Jan-08 12:42
Umer Sheikh27-Jan-08 12:42 
GeneralRe: File IO using Assembly and C Pin
Luc Pattyn27-Jan-08 12:47
sitebuilderLuc Pattyn27-Jan-08 12:47 
GeneralMFC: printing a document through drawing on a CScrollView Pin
Sternocera27-Jan-08 4:41
Sternocera27-Jan-08 4:41 
GeneralRe: MFC: printing a document through drawing on a CScrollView Pin
bob1697227-Jan-08 6:42
bob1697227-Jan-08 6:42 

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.