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

C / C++ / MFC

 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 9:05
mveRichard MacCutchan16-Oct-09 9:05 
GeneralRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 9:11
GLGunblade16-Oct-09 9:11 
QuestionRe: I just don't understand HWND Pin
CPallini16-Oct-09 10:52
mveCPallini16-Oct-09 10:52 
AnswerRe: I just don't understand HWND Pin
GLGunblade16-Oct-09 17:39
GLGunblade16-Oct-09 17:39 
GeneralRe: I just don't understand HWND Pin
Richard MacCutchan16-Oct-09 22:19
mveRichard MacCutchan16-Oct-09 22:19 
GeneralRe: I just don't understand HWND Pin
GLGunblade17-Oct-09 15:10
GLGunblade17-Oct-09 15:10 
QuestionDDX_CONTROL VS. Create for the RichEditClass Pin
ForNow16-Oct-09 6:33
ForNow16-Oct-09 6:33 
AnswerRe: DDX_CONTROL VS. Create for the RichEditClass Pin
Iain Clarke, Warrior Programmer16-Oct-09 22:06
Iain Clarke, Warrior Programmer16-Oct-09 22:06 
I can't answer 100%, but I'll help a bit.

The difference is not DDX_Control. That just helps you associate a variable in your dialog with a window.

The difference is:
a) A control "built" in to the dialog resource, and created automatically as part of the dialog creation,
and
b) A control you create manually, later.

So, to answer your points...
1) Different Fonts.
At creation time for the dialog, it sets the font (WM_SETFONT) of the child windows (ie, your rich edit) to the same font as the dialog is set to use.
When you create a window manually later, this step does not happen.

2) Different extent sizes.
Almost certainly the same issue. Text size comes from fonts.

3) Inverse background colour.
Not sure, but I bet the text is inially selected, or something along those lines. Try dragging the mouse over text - I bet it goes inverse too.


Points 1 & 2 would be the same for a button, or an edit control... Nothing to do with the rich edit control at all.

Hope that helps!

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: DDX_CONTROL VS. Create for the RichEditClass Pin
ForNow17-Oct-09 14:22
ForNow17-Oct-09 14:22 
GeneralRe: DDX_CONTROL VS. Create for the RichEditClass Pin
ForNow17-Oct-09 17:41
ForNow17-Oct-09 17:41 
Questionhow to work out "type redefinition" problem Pin
yugiant16-Oct-09 4:57
yugiant16-Oct-09 4:57 
AnswerRe: how to work out "type redefinition" problem Pin
«_Superman_»16-Oct-09 5:05
professional«_Superman_»16-Oct-09 5:05 
GeneralRe: how to work out "type redefinition" problem Pin
yugiant16-Oct-09 5:51
yugiant16-Oct-09 5:51 
GeneralRe: how to work out "type redefinition" problem Pin
«_Superman_»16-Oct-09 6:03
professional«_Superman_»16-Oct-09 6:03 
GeneralRe: how to work out "type redefinition" problem Pin
yugiant16-Oct-09 6:06
yugiant16-Oct-09 6:06 
QuestionRe: how to work out "type redefinition" problem Pin
David Crow16-Oct-09 5:05
David Crow16-Oct-09 5:05 
Questionhow to get dial-in tab properties of user object in active directory using c++ Pin
raja 416-Oct-09 4:40
raja 416-Oct-09 4:40 
QuestionChild dialog problem Pin
ilgale16-Oct-09 4:26
ilgale16-Oct-09 4:26 
AnswerRe: Child dialog problem Pin
Iain Clarke, Warrior Programmer16-Oct-09 22:07
Iain Clarke, Warrior Programmer16-Oct-09 22:07 
QuestionHow do I make calling InitializeCriticalSection() thread safe? [modified] Pin
Steve Thresher16-Oct-09 2:06
Steve Thresher16-Oct-09 2:06 
AnswerRe: How do I make calling InitializeCriticalSection() thread safe? Pin
Cedric Moonen16-Oct-09 2:32
Cedric Moonen16-Oct-09 2:32 
AnswerRe: How do I make calling InitializeCriticalSection() thread safe? Pin
CPallini16-Oct-09 2:54
mveCPallini16-Oct-09 2:54 
AnswerRe: How do I make calling InitializeCriticalSection() thread safe? Pin
cmk16-Oct-09 3:02
cmk16-Oct-09 3:02 
QuestionHandling keystrokes on TreeCntrl Pin
ratprita16-Oct-09 1:04
ratprita16-Oct-09 1:04 
AnswerRe: Handling keystrokes on TreeCntrl Pin
Hans Dietrich16-Oct-09 1:40
mentorHans Dietrich16-Oct-09 1:40 

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.