Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to enable an edit box? Pin
Ryan Binns29-Jan-04 18:01
Ryan Binns29-Jan-04 18:01 
GeneralStuck Alt? Accelerators not working... Pin
Anonymous29-Jan-04 12:28
Anonymous29-Jan-04 12:28 
GeneralRe: Stuck Alt? Accelerators not working... Pin
blindcop29-Jan-04 23:40
blindcop29-Jan-04 23:40 
Questionhow can i run an application from a windows service? Pin
Rene De La Garza29-Jan-04 12:04
Rene De La Garza29-Jan-04 12:04 
AnswerRe: how can i run an application from a windows service? Pin
Brad Bruce29-Jan-04 13:46
Brad Bruce29-Jan-04 13:46 
GeneralRe: how can i run an application from a windows service? Pin
Anonymous29-Jan-04 15:12
Anonymous29-Jan-04 15:12 
GeneralPrinting with MFC without a CView Pin
bitpusher29-Jan-04 10:16
bitpusher29-Jan-04 10:16 
GeneralRe: Printing with MFC without a CView Pin
Antti Keskinen29-Jan-04 10:25
Antti Keskinen29-Jan-04 10:25 
Do you need print preview ?

If you do, the situation gets more complicated, as all previewing support for MFC is tightly linked to the view architecture.

But if you don't, then you can simply enumerate the available printers, create a compatible DC with any one of them, then paint your printing onto the DC and send it over to the printer. The printer driver will worry about the rest. DCs created for printers are automatically matched to the printer's color, dimension and other settings, making it pretty straightforward procedure to print with them.

I suggest dwelving into this[^] and this[^] articles in the MSDN Library. First one handles the usage of a custom view for print preview/printing and the next one shows a simple code example to directly use the printer DC.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralQuestion on VC++ and MS Word Pin
skinnyreptile29-Jan-04 9:39
skinnyreptile29-Jan-04 9:39 
GeneralRe: Question on VC++ and MS Word Pin
basementman30-Jan-04 10:25
basementman30-Jan-04 10:25 
QuestionOutlook 2003 contact like grid control? Pin
Joe Woodbury29-Jan-04 9:35
professionalJoe Woodbury29-Jan-04 9:35 
AnswerRe: Outlook 2003 contact like grid control? Pin
Antti Keskinen29-Jan-04 10:29
Antti Keskinen29-Jan-04 10:29 
GeneralRe: Outlook 2003 contact like grid control? Pin
Joe Woodbury29-Jan-04 11:11
professionalJoe Woodbury29-Jan-04 11:11 
AnswerRe: Outlook 2003 contact like grid control? Pin
Ivor S. Sargoytchev29-Jan-04 11:32
Ivor S. Sargoytchev29-Jan-04 11:32 
GeneralPassing WndProc as a method parameter (Function Pointers Pin
Senkwe Chanda29-Jan-04 9:18
Senkwe Chanda29-Jan-04 9:18 
GeneralRe: Passing WndProc as a method parameter (Function Pointers Pin
Antti Keskinen29-Jan-04 10:57
Antti Keskinen29-Jan-04 10:57 
Questioncan i use two projects in one work space ,, how ??? Pin
Zeeshan Bilal29-Jan-04 8:45
Zeeshan Bilal29-Jan-04 8:45 
AnswerRe: can i use two projects in one work space ,, how ??? Pin
Antti Keskinen29-Jan-04 11:06
Antti Keskinen29-Jan-04 11:06 
AnswerRe: can i use two projects in one work space ,, how ??? Pin
Mukkie29-Jan-04 11:07
Mukkie29-Jan-04 11:07 
Questioni want to send my char array of 1 MB through CSocket .. it Contains Sound data. How i typecast it or ,,,,,? Pin
Anonymous29-Jan-04 8:41
Anonymous29-Jan-04 8:41 
AnswerRe: i want to send my char array of 1 MB through CSocket .. it Contains Sound data. How i typecast it or ,,,,,? Pin
Dean Goodman29-Jan-04 8:56
Dean Goodman29-Jan-04 8:56 
GeneralProblem with ListCtrl on Windows 98 Pin
Brigg Thorp29-Jan-04 8:31
Brigg Thorp29-Jan-04 8:31 
GeneralRe: Problem with ListCtrl on Windows 98 Pin
Nick Nougat30-Jan-04 5:15
Nick Nougat30-Jan-04 5:15 
GeneralMDI question.. Pin
RobJones29-Jan-04 8:14
RobJones29-Jan-04 8:14 
GeneralNever Mind.. Figured it out.. Pin
RobJones29-Jan-04 8:24
RobJones29-Jan-04 8:24 

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.