Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe:Thanks still i have the question? Pin
RamaraoPV2-Apr-08 1:13
RamaraoPV2-Apr-08 1:13 
GeneralRe:Thanks still i have the question? Pin
Cedric Moonen2-Apr-08 2:14
Cedric Moonen2-Apr-08 2:14 
GeneralPrinter DC Pin
Developer6112-Apr-08 0:22
Developer6112-Apr-08 0:22 
GeneralRe: Printer DC Pin
_AnsHUMAN_ 2-Apr-08 1:14
_AnsHUMAN_ 2-Apr-08 1:14 
GeneralRe: Printer DC Pin
Developer6112-Apr-08 1:28
Developer6112-Apr-08 1:28 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:51
Rajkumar R2-Apr-08 1:51 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:19
Rajkumar R2-Apr-08 1:19 
GeneralRe: Printer DC Pin
Krishnakumartg3-Apr-08 21:37
Krishnakumartg3-Apr-08 21:37 
HDC hDC;
CDC PrinterDC;
hDC = CreateDC( NULL, "YOUR PRINTERNAME", NULL, NULL );
PrinterDC.Attach( hDC );
DOCINFO stDocInfo;
memset( &stDocInfo, 0, sizeof( DOCINFO ));
stDocInfo.cbSize = sizeof( DOCINFO );
stDocInfo.lpszDocName = _T( "TEST" ); // Document name
StartDoc( hDC, &stDocInfo );
CPen DrawPen( PS_DASH, 5, RGB( 0, 0, 0 ));
CBrush DrawBrush( HS_BDIAGONAL, RGB( 0, 0, 255 ));
PrinterDC.SelectObject( &DrawPen );
//PrinterDC.SelectObject( &DrawBrush ) ;
PrinterDC.SetBkMode( TRANSPARENT );
StartPage( hDC );
CRect Rect( 0, 0, 100, 100 );
PrinterDC.Rectangle( &Rect );
PrinterDC.MoveTo( 0, 0 );
PrinterDC.LineTo( 100, 100 );
CString csText( _T( "Orientation" ));
TextOut( hDC, 50, 50, csText.operator LPCTSTR(), csText.GetLength());
EndPage( hDC );
EndDoc( hDC );
PrinterDC.Detach();
GeneralRe: Printer DC Pin
Hamid_RT7-Apr-08 3:54
Hamid_RT7-Apr-08 3:54 
QuestionHow to get focus to property sheet in windows programming(win32) Pin
Swty2-Apr-08 0:15
Swty2-Apr-08 0:15 
GeneralApplication is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 0:11
RamaraoPV2-Apr-08 0:11 
QuestionRe: Application is crashing when trying to display messagebox Pin
CPallini2-Apr-08 1:51
mveCPallini2-Apr-08 1:51 
QuestionRe: Application is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 2:10
RamaraoPV2-Apr-08 2:10 
GeneralRe: Application is crashing when trying to display messagebox Pin
Cedric Moonen2-Apr-08 2:21
Cedric Moonen2-Apr-08 2:21 
GeneralRe: Application is crashing when trying to display messagebox Pin
Maximilien2-Apr-08 2:55
Maximilien2-Apr-08 2:55 
QuestionRe: Application is crashing when trying to display messagebox Pin
David Crow2-Apr-08 3:40
David Crow2-Apr-08 3:40 
GeneralHooking Raw Input - Detect HID mice Pin
maszup2-Apr-08 0:03
maszup2-Apr-08 0:03 
GeneralRe: Hooking Raw Input - Detect HID mice Pin
Randor 2-Apr-08 5:04
professional Randor 2-Apr-08 5:04 
GeneralSwitch Pin
john56321-Apr-08 23:43
john56321-Apr-08 23:43 
GeneralRe: Switch Pin
Cedric Moonen1-Apr-08 23:47
Cedric Moonen1-Apr-08 23:47 
GeneralRe: Switch Pin
Mark Salsbery2-Apr-08 6:18
Mark Salsbery2-Apr-08 6:18 
GeneralRe: Switch Pin
Hamid_RT7-Apr-08 3:52
Hamid_RT7-Apr-08 3:52 
QuestionThread Pin
Member 34205091-Apr-08 23:37
Member 34205091-Apr-08 23:37 
GeneralRe: Thread Pin
Cedric Moonen1-Apr-08 23:41
Cedric Moonen1-Apr-08 23:41 
GeneralRe: Thread Pin
Maxwell Chen1-Apr-08 23:50
Maxwell Chen1-Apr-08 23:50 

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.