Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I want to print some icons. Here is my code:
CDC* m_PrintDC;
// attach m_PrintDC with printer success .....

CPoint point(10, 10);
HICON aIcon = AfxGetApp()->LoadIcon(IDI_ICON_CHECKEDBOX);
m_PrintDC->DrawIcon(point, aIcon);

//m_PrintDC->DrawText("xxxxxxxxx", &aRect,DT_SINGLELINE | DT_LEFT);

Here IDI_ICON_CHECKEDBOX is a icon ID that I draw.
But it doesn't work, I don't know why?? I can print some text with DrawText(...).

Anyone know what's wrong here? Thank you in advance.
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 
AnswerRe: Using getenv Pin
David Crow10-Jul-08 8:43
David Crow10-Jul-08 8:43 
GeneralRe: Using getenv [modified] Pin
Bram van Kampen12-Jul-08 16:42
Bram van Kampen12-Jul-08 16:42 
Questionget_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 7:30
Mohammad Tarik10-Jul-08 7:30 
QuestionRe: get_anchors doesn't return all anchors Pin
David Crow10-Jul-08 7:32
David Crow10-Jul-08 7:32 
AnswerRe: get_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 7:35
Mohammad Tarik10-Jul-08 7:35 
QuestionRe: get_anchors doesn't return all anchors Pin
David Crow10-Jul-08 7:45
David Crow10-Jul-08 7:45 
AnswerRe: get_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 7:58
Mohammad Tarik10-Jul-08 7:58 
QuestionRe: get_anchors doesn't return all anchors Pin
David Crow10-Jul-08 8:16
David Crow10-Jul-08 8:16 
AnswerRe: get_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 8:37
Mohammad Tarik10-Jul-08 8:37 
GeneralRe: get_anchors doesn't return all anchors Pin
David Crow10-Jul-08 8:41
David Crow10-Jul-08 8:41 
GeneralRe: get_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 8:51
Mohammad Tarik10-Jul-08 8:51 
GeneralRe: get_anchors doesn't return all anchors Pin
Mohammad Tarik10-Jul-08 9:20
Mohammad Tarik10-Jul-08 9:20 

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.