Click here to Skip to main content
15,905,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisabling Pin
SandhyaSri20-Aug-06 19:39
SandhyaSri20-Aug-06 19:39 
QuestionRe: Disabling Pin
prasad_som20-Aug-06 19:58
prasad_som20-Aug-06 19:58 
QuestionList Control problem Pin
Anu_Bala20-Aug-06 19:20
Anu_Bala20-Aug-06 19:20 
GeneralRe: List Control problem Pin
prasad_som20-Aug-06 20:08
prasad_som20-Aug-06 20:08 
AnswerRe: List Control problem Pin
Hamid_RT20-Aug-06 20:36
Hamid_RT20-Aug-06 20:36 
GeneralRe: List Control problem Pin
Anu_Bala21-Aug-06 20:12
Anu_Bala21-Aug-06 20:12 
GeneralRe: List Control problem Pin
Hamid_RT22-Aug-06 8:11
Hamid_RT22-Aug-06 8:11 
Questionget page margins for different paper types Pin
ch7liu20-Aug-06 16:34
ch7liu20-Aug-06 16:34 
As known, we can use DeviceCapabilities with DC_PAPERS Retrieves a list of supported paper sizes. My question is: how do we retrieve the list of default page margins for each paper size?

This should be doable because the preview image inside the page setup dialog (eg in Notepad) displays different margins for different paper size selection.

I tried this approach but it didn't work:
(1) Use SetPrinter to change the paper size (see "Set up/change printer orientation and select paper type/size" By AlexEvans )
(2) Use GetDeviceCaps() with PHYSICALOFFSETX and PHYSICALOFFSETY to get left and top margins. But it didn't give me correct info (eg, it gives me 0 for A3 paper).

I really want to know how MFC's CPageSetupDialog is able to do that, but I haven't been able to find it out.

Thanks all for help!
QuestionPlease help me. Access LAN computer. [modified] Pin
thangnvhl20-Aug-06 15:09
thangnvhl20-Aug-06 15:09 
AnswerRe: Please help me. Access LAN computer. Pin
Hamid_RT31-Aug-06 6:14
Hamid_RT31-Aug-06 6:14 
QuestionDoes turning on /GS- switch make the final binary code run slower? Pin
Link260020-Aug-06 15:00
Link260020-Aug-06 15:00 
AnswerRe: Does turning on /GS- switch make the final binary code run slower? [modified] Pin
Paul Conrad21-Aug-06 9:46
professionalPaul Conrad21-Aug-06 9:46 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Link260021-Aug-06 16:01
Link260021-Aug-06 16:01 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Paul Conrad21-Aug-06 17:54
professionalPaul Conrad21-Aug-06 17:54 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Link260021-Aug-06 20:39
Link260021-Aug-06 20:39 
QuestionBreaking point Pin
Waldermort20-Aug-06 9:44
Waldermort20-Aug-06 9:44 
AnswerRe: Breaking point Pin
RChin20-Aug-06 9:53
RChin20-Aug-06 9:53 
AnswerRe: Breaking point Pin
Kevin McFarlane20-Aug-06 9:55
Kevin McFarlane20-Aug-06 9:55 
AnswerRe: Breaking point Pin
Neville Franks20-Aug-06 11:51
Neville Franks20-Aug-06 11:51 
AnswerRe: Breaking point Pin
bob1697220-Aug-06 11:58
bob1697220-Aug-06 11:58 
Question(ios::good == true) crashes the program Pin
jon-8020-Aug-06 8:52
professionaljon-8020-Aug-06 8:52 
AnswerRe: (ios::good == true) crashes the program Pin
Michael Dunn20-Aug-06 10:38
sitebuilderMichael Dunn20-Aug-06 10:38 
GeneralRe: (ios::good == true) crashes the program Pin
jon-8021-Aug-06 5:10
professionaljon-8021-Aug-06 5:10 
QuestionClipboard change event? Pin
fklldsvs20-Aug-06 8:19
fklldsvs20-Aug-06 8:19 
AnswerRe: Clipboard change event? Pin
Ravi Bhavnani20-Aug-06 8:48
professionalRavi Bhavnani20-Aug-06 8:48 

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.