Click here to Skip to main content
15,888,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CEdit Control Pin
dupenf116-Nov-08 21:28
dupenf116-Nov-08 21:28 
QuestionLogon failure with Win32 Service Pin
Member 569752115-Nov-08 10:09
Member 569752115-Nov-08 10:09 
AnswerRe: Logon failure with Win32 Service Pin
Graham Bradshaw15-Nov-08 11:29
Graham Bradshaw15-Nov-08 11:29 
GeneralRe: Logon failure with Win32 Service Pin
Member 569752116-Nov-08 7:48
Member 569752116-Nov-08 7:48 
GeneralRe: Logon failure with Win32 Service Pin
Graham Bradshaw16-Nov-08 8:04
Graham Bradshaw16-Nov-08 8:04 
QuestionHook printer jobs Pin
Green Fuze15-Nov-08 9:05
Green Fuze15-Nov-08 9:05 
AnswerRe: Hook printer jobs Pin
Garth J Lancaster15-Nov-08 22:51
professionalGarth J Lancaster15-Nov-08 22:51 
QuestionCRichEditCtrl - problem with SetTargetDevice and TO_ADVANCEDTYPOGRAPHY Pin
szczepi15-Nov-08 8:57
szczepi15-Nov-08 8:57 
I have simple program (one dialog) with a rich edit control.
My OnInitDialog() event looks as follows:

BOOL CRichEditTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);

// The m_oPrinterDC stores a device context of default printer
// The lLineWidth stores width which is less significant than width of
// the rich edit control - to have right margin.
m_oRichEditCtrl.SetTargetDevice( m_oPrinterDC, lLineWidth );
::SendMessage(
m_oRichEditCtrl.GetSafeHwnd(),
EM_SETTYPOGRAPHYOPTIONS,
(WPARAM)TO_ADVANCEDTYPOGRAPHY,
(LPARAM)TO_ADVANCEDTYPOGRAPHY
);

return TRUE;
}

When I type some sentences I can see that words are wrapped very nice (as expected).
Unfortunately when I type some unusual words they are not wrapped/formatted correctly.

For example: let N be the maximum number of dots (without spaces) that can fit in one line (without wrapping) in the rich edit control.
When I type N dots I have correct right margin (as expected).
When I type N+1 dots (without spaces) I have N dots in first line and 1 dot in second line
but the N dots in first line extend beyond the end of area where they should fit.



Can anyone give me some feedback on this issue? How can I achieve correct text formatting when text is unusual?
QuestionReferencing lib file Pin
Christian Flutcher15-Nov-08 7:25
Christian Flutcher15-Nov-08 7:25 
AnswerRe: Referencing lib file Pin
Mark Salsbery15-Nov-08 7:30
Mark Salsbery15-Nov-08 7:30 
GeneralRe: Referencing lib file Pin
Christian Flutcher16-Nov-08 6:56
Christian Flutcher16-Nov-08 6:56 
GeneralRe: Referencing lib file Pin
Mark Salsbery16-Nov-08 7:08
Mark Salsbery16-Nov-08 7:08 
GeneralRe: Referencing lib file Pin
Christian Flutcher16-Nov-08 7:12
Christian Flutcher16-Nov-08 7:12 
GeneralRe: Referencing lib file Pin
Mark Salsbery16-Nov-08 7:22
Mark Salsbery16-Nov-08 7:22 
GeneralRe: Referencing lib file Pin
Jijo.Raj16-Nov-08 7:34
Jijo.Raj16-Nov-08 7:34 
GeneralRe: Referencing lib file Pin
Christian Flutcher17-Nov-08 15:37
Christian Flutcher17-Nov-08 15:37 
QuestionProblems with malloc() and typedef struct Pin
Manfr3d15-Nov-08 3:11
Manfr3d15-Nov-08 3:11 
AnswerRe: Problems with malloc() and typedef struct Pin
Iain Clarke, Warrior Programmer15-Nov-08 3:18
Iain Clarke, Warrior Programmer15-Nov-08 3:18 
GeneralRe: Problems with malloc() and typedef struct Pin
Manfr3d15-Nov-08 4:08
Manfr3d15-Nov-08 4:08 
AnswerRe: Problems with malloc() and typedef struct Pin
cmk15-Nov-08 9:21
cmk15-Nov-08 9:21 
GeneralRe: Problems with malloc() and typedef struct Pin
Manfr3d15-Nov-08 23:22
Manfr3d15-Nov-08 23:22 
GeneralRe: Problems with malloc() and typedef struct Pin
cmk16-Nov-08 8:47
cmk16-Nov-08 8:47 
Questionset focus to a control problem on win32 dialogs [modified] Pin
abdolahzadeh15-Nov-08 2:55
abdolahzadeh15-Nov-08 2:55 
AnswerRe: set focus to a control problem on win32 dialogs Pin
Code-o-mat15-Nov-08 3:36
Code-o-mat15-Nov-08 3:36 
GeneralRe: set focus to a control problem on win32 dialogs Pin
abdolahzadeh16-Nov-08 2:43
abdolahzadeh16-Nov-08 2:43 

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.