Click here to Skip to main content
15,915,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnPaint is transitory. Pin
jazy110-Jul-08 18:04
jazy110-Jul-08 18:04 
GeneralRe: OnPaint is transitory. Pin
enhzflep10-Jul-08 18:20
enhzflep10-Jul-08 18:20 
GeneralRe: OnPaint is transitory. Pin
jazy110-Jul-08 18:59
jazy110-Jul-08 18:59 
GeneralRe: OnPaint is transitory. Pin
Nelek10-Jul-08 21:48
protectorNelek10-Jul-08 21:48 
GeneralRe: OnPaint is transitory. Pin
jazy110-Jul-08 22:50
jazy110-Jul-08 22:50 
AnswerRe: OnPaint is transitory. Pin
Mark Salsbery11-Jul-08 6:25
Mark Salsbery11-Jul-08 6:25 
AnswerRe: OnPaint is transitory. Pin
jazy113-Jul-08 21:03
jazy113-Jul-08 21:03 
Questionprint a window Pin
tataxin10-Jul-08 16:46
tataxin10-Jul-08 16:46 
I have a MDI project, now I want to print the interface. So I saw this article:

http://support.microsoft.com/kb/q186736/

Then I try to apply to my project, just create a menu item or button, do like this:
// message map
ON_COMMAND(ID_PRINT_PRINTALL, &CMyDlg::PrintGUI)

// declare function
afx_msg void PrintGUI();


// implement function
void CMyDlg::PrintGUI(){
	// get the Main window
	CWnd* a = AfxGetMainWnd();
	
        // print it, this function is implemented follow the above article
	PrintWindowToDC(*a);
}


But when I run, nothing happen.
Have anyone ever tried the similar thing? Please helpppppppp !!!!!!!!!!
AnswerRe: print a window Pin
Nelek10-Jul-08 21:42
protectorNelek10-Jul-08 21:42 
Questionregular expression - removing last character from result Pin
rp_suman10-Jul-08 16:29
rp_suman10-Jul-08 16:29 
AnswerRe: regular expression - removing last character from result Pin
geoffs15-Jul-08 17:11
geoffs15-Jul-08 17:11 
GeneralRe: regular expression - removing last character from result Pin
rp_suman16-Jul-08 2:04
rp_suman16-Jul-08 2:04 
QuestionHow to Associate a File Extension with a Program Pin
Bram van Kampen10-Jul-08 15:34
Bram van Kampen10-Jul-08 15:34 
AnswerRe: How to Associate a File Extension with a Program Pin
Nelek10-Jul-08 21:29
protectorNelek10-Jul-08 21:29 
GeneralRe: How to Associate a File Extension with a Program Pin
Bram van Kampen11-Jul-08 14:31
Bram van Kampen11-Jul-08 14:31 
GeneralRe: How to Associate a File Extension with a Program Pin
Bram van Kampen12-Jul-08 13:02
Bram van Kampen12-Jul-08 13:02 
AnswerRe: How to Associate a File Extension with a Program Pin
Mark Salsbery11-Jul-08 6:31
Mark Salsbery11-Jul-08 6:31 
GeneralRe: How to Associate a File Extension with a Program Pin
Bram van Kampen11-Jul-08 14:30
Bram van Kampen11-Jul-08 14:30 
GeneralRe: How to Associate a File Extension with a Program Pin
Bram van Kampen12-Jul-08 16:08
Bram van Kampen12-Jul-08 16:08 
Questionwhy can't I print an icon? Pin
tataxin10-Jul-08 15:33
tataxin10-Jul-08 15:33 
AnswerRe: why can't I print an icon? Pin
Mark Salsbery11-Jul-08 6:34
Mark Salsbery11-Jul-08 6:34 
GeneralRe: why can't I print an icon? Pin
Bram van Kampen12-Jul-08 16:25
Bram van Kampen12-Jul-08 16:25 
GeneralRe: why can't I print an icon? Pin
tataxin13-Jul-08 14:43
tataxin13-Jul-08 14:43 
GeneralRe: why can't I print an icon? Pin
Bram van Kampen15-Jul-08 14:47
Bram van Kampen15-Jul-08 14:47 
QuestionUsing getenv Pin
rocktx10-Jul-08 8:17
rocktx10-Jul-08 8:17 

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.