Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help! About structure alignment Pin
Joaquín M López Muñoz31-Jan-02 9:58
Joaquín M López Muñoz31-Jan-02 9:58 
GeneralRe: Help! About structure alignment Pin
lucy31-Jan-02 10:24
lucy31-Jan-02 10:24 
GeneralI'm lost! Pin
31-Jan-02 8:28
suss31-Jan-02 8:28 
GeneralRe: I'm lost! Pin
Joaquín M López Muñoz31-Jan-02 8:37
Joaquín M López Muñoz31-Jan-02 8:37 
GeneralRe: I'm lost! Pin
31-Jan-02 8:50
suss31-Jan-02 8:50 
GeneralRe: I'm lost! Pin
Joaquín M López Muñoz31-Jan-02 8:55
Joaquín M López Muñoz31-Jan-02 8:55 
GeneralRe: I'm lost! Pin
marouane miftah el kheir31-Jan-02 9:04
marouane miftah el kheir31-Jan-02 9:04 
GeneralProblems changing the Print Setup dialog Pin
A Wlasuk31-Jan-02 8:12
A Wlasuk31-Jan-02 8:12 
I have a need to add controls to the Print Setup dialog.

I did this via what I thought was the standard means:

- Copied the Print Setup dialog (PRINTDLGORD) to my RC file
- Created a Class based on this new dialog
- Used this new class (CMyPrintDialog) in place of CPrintDialog
- Added controls to the new dialog
- Used the following code:

CMyPrintDialog PrintSetup( TRUE,
PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS | PD_NONETWORKBUTTON |
PD_HIDEPRINTTOFILE | PD_NOSELECTION | PD_ENABLESETUPTEMPLATE );

PrintSetup.m_pd.hInstance = AfxGetInstanceHandle();
PrintSetup.m_pd.lpSetupTemplateName = MAKEINTRESOURCE( IDD_MY_PRINT_SETUP );

PrintSetup.DoModal();

All seems to work fine except entering text into a Edit Box on the new dialog appears to make the dialog repaint on each character. This is seem as:

- The Protrait/Landscape icon repaints each time a char is typed
- The cursor on the dialog repositions at the begining of the edit box on each char
- Takes a long time for each character and the hourglass appears.

I suspect I have left out a step.

Any suggestions?

AW

GeneralRe: Problems changing the Print Setup dialog Pin
Shog931-Jan-02 9:03
sitebuilderShog931-Jan-02 9:03 
GeneralDLL Tutorials needed Pin
Jon Newman31-Jan-02 7:55
Jon Newman31-Jan-02 7:55 
GeneralRe: DLL Tutorials needed Pin
Rick York31-Jan-02 8:08
mveRick York31-Jan-02 8:08 
Question#ifndef _MYHEADER_H_??? Pin
Rickard Andersson2031-Jan-02 7:12
Rickard Andersson2031-Jan-02 7:12 
AnswerRe: #ifndef _MYHEADER_H_??? Pin
Michael Dunn31-Jan-02 7:22
sitebuilderMichael Dunn31-Jan-02 7:22 
GeneralRe: #ifndef _MYHEADER_H_??? Pin
Rickard Andersson2031-Jan-02 9:45
Rickard Andersson2031-Jan-02 9:45 
GeneralStretchDIBits / mem DC Pin
pba_31-Jan-02 7:08
pba_31-Jan-02 7:08 
GeneralRe: StretchDIBits / mem DC Pin
Paul M Watt31-Jan-02 7:35
mentorPaul M Watt31-Jan-02 7:35 
GeneralStatic Text Pin
Rajveer31-Jan-02 6:13
Rajveer31-Jan-02 6:13 
GeneralRe: Static Text Pin
Ravi Bhavnani31-Jan-02 6:28
professionalRavi Bhavnani31-Jan-02 6:28 
GeneralDeleting directories Pin
Stan the man31-Jan-02 5:37
Stan the man31-Jan-02 5:37 
GeneralRe: Deleting directories Pin
Rickard Andersson2031-Jan-02 7:06
Rickard Andersson2031-Jan-02 7:06 
GeneralRe: Deleting directories Pin
Michael Dunn31-Jan-02 7:21
sitebuilderMichael Dunn31-Jan-02 7:21 
GeneralRe: help please! Pin
lucy31-Jan-02 6:55
lucy31-Jan-02 6:55 
GeneralRe: help please! Pin
Roger Allen31-Jan-02 7:36
Roger Allen31-Jan-02 7:36 
GeneralProperty page, last tab... Pin
Braulio Dez31-Jan-02 4:41
Braulio Dez31-Jan-02 4:41 
GeneralRe: Property page, last tab... Pin
Joaquín M López Muñoz31-Jan-02 5:00
Joaquín M López Muñoz31-Jan-02 5:00 

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.