Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Toolbar-like button Pin
Mark Salsbery25-Oct-08 11:33
Mark Salsbery25-Oct-08 11:33 
GeneralRe: Toolbar-like button Pin
Moak25-Oct-08 12:38
Moak25-Oct-08 12:38 
QuestionVC++ MFC MDI Application with extended ListCtrl and base class for View Pin
KK31525-Oct-08 3:11
KK31525-Oct-08 3:11 
AnswerRe: VC++ MFC MDI Application with extended ListCtrl and base class for View Pin
Iain Clarke, Warrior Programmer25-Oct-08 3:41
Iain Clarke, Warrior Programmer25-Oct-08 3:41 
GeneralRe: VC++ MFC MDI Application with extended ListCtrl and base class for View Pin
KK31525-Oct-08 4:42
KK31525-Oct-08 4:42 
QuestionMultiple Root Nodes in a CTreeCtrl problem [modified](I have resolved the problem) Pin
Dhiraj kumar Saini25-Oct-08 1:26
Dhiraj kumar Saini25-Oct-08 1:26 
AnswerRe: Multiple Root Nodes in a CTreeCtrl problem Pin
Dhiraj kumar Saini25-Oct-08 1:45
Dhiraj kumar Saini25-Oct-08 1:45 
QuestionCRichEditCtrl and 'what you see is what you get' problem Pin
Newbie0025-Oct-08 1:15
Newbie0025-Oct-08 1:15 
Hello,

I use several controls with the CMainFrame=>CView. These controls are for putting different values like 'amount', 'price', and 'text'. There is also possibility to print all CView content. And the problem is with setting 'what you see is what you get' for CRichEditCtrl.
My CRichEditCtrl is calculated to have 8 cm + some offset width, because text printed, and print previewed has also 8 cm width.
I would like the text in my CRichEditCtrl looked identical as on the printout.
So I use CRichEditCtrl::SetTargetDevice(...) in order to set:
1. Printer DC
2. line width calculated as 8 cm.

After I used SetTargetDevice the word wrapping is the same as on the printout, but there is still very big problem. I mean the text is very often partly shifted out of the CRichEditCtrl in the horizontal view. It looks like CRichEditCtrl didn't have enough space to contain all text width, but it is not true. It really has 8 cm + offset. The line set with SetTargetDivice has also 8 cm width. So I don't understand why the CRichEditControl does not contain whole text width. I checked the same text, with the same font setting, with the same margin in the MS Word, and in MS Word everything looks fine. Whole text is well fitted.
My question is: Did i miss some setting? What am i doing wrong here? Or maybe I should get "what you see is what you get" in some other way?
I'm including printscreen showing the problem:
http://rapidshare.com/files/157373743/Screen.png[^]

Regards.
QuestionAnalyze crash dump created by windbg. Pin
Subrat 470826624-Oct-08 23:06
Subrat 470826624-Oct-08 23:06 
AnswerRe: Analyze crash dump created by windbg. Pin
Baltoro25-Oct-08 8:31
Baltoro25-Oct-08 8:31 
AnswerRe: Analyze crash dump created by windbg. Pin
bigcivilmelon27-Oct-08 3:49
bigcivilmelon27-Oct-08 3:49 
Questionregarding CrichEditCtrl [modified] Pin
jasuja_moris24-Oct-08 21:58
jasuja_moris24-Oct-08 21:58 
AnswerRe: regarding CrichEditCtrl Pin
Nuri Ismail24-Oct-08 23:48
Nuri Ismail24-Oct-08 23:48 
QuestionHow to reinitialize the OpenGL window in MFC in order to render another file? Pin
sn00pi24-Oct-08 21:41
sn00pi24-Oct-08 21:41 
AnswerRe: How to reinitialize the OpenGL window in MFC in order to render another file? Pin
Cedric Moonen24-Oct-08 21:50
Cedric Moonen24-Oct-08 21:50 
GeneralRe: How to reinitialize the OpenGL window in MFC in order to render another file? Pin
sn00pi24-Oct-08 22:22
sn00pi24-Oct-08 22:22 
GeneralRe: How to reinitialize the OpenGL window in MFC in order to render another file? Pin
Cedric Moonen24-Oct-08 23:59
Cedric Moonen24-Oct-08 23:59 
GeneralRe: How to reinitialize the OpenGL window in MFC in order to render another file? Pin
sn00pi25-Oct-08 0:49
sn00pi25-Oct-08 0:49 
GeneralRe: How to reinitialize the OpenGL window in MFC in order to render another file? Pin
Cedric Moonen25-Oct-08 2:02
Cedric Moonen25-Oct-08 2:02 
Question"Warning: GetWindowMenuPopup failed!" Pin
Nikesh Jagtap24-Oct-08 21:07
Nikesh Jagtap24-Oct-08 21:07 
AnswerRe: "Warning: GetWindowMenuPopup failed!" Pin
Iain Clarke, Warrior Programmer25-Oct-08 2:42
Iain Clarke, Warrior Programmer25-Oct-08 2:42 
GeneralRe: "Warning: GetWindowMenuPopup failed!" Pin
Bram van Kampen25-Oct-08 16:35
Bram van Kampen25-Oct-08 16:35 
QuestionConerting vc 6 program into vc 2008 application Pin
VCProgrammer24-Oct-08 20:57
VCProgrammer24-Oct-08 20:57 
AnswerRe: Conerting vc 6 program into vc 2008 application Pin
Cedric Moonen24-Oct-08 21:52
Cedric Moonen24-Oct-08 21:52 
GeneralRe: Conerting vc 6 program into vc 2008 application Pin
VCProgrammer24-Oct-08 21:56
VCProgrammer24-Oct-08 21:56 

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.