Changing font style in CEdit derived control. 
Author Message
 Changing font style in CEdit derived control.

Hi there,

To limit character input to a CEdit control I derived a class from CEdit and overloaded (is that the
word?) the OnChar event handler. This all works just fine, except that the font style in a manually
(that is run-time) created CEdit control is "System" (it looks like it anyway).
So my question is: How does one change the default font style of a run time created Edit control?

Thanks in advance,

Sytse.
(It would greatly benefit the correct delivery of your mail if you replace my nickname with lonehelm
before replying to me in person)

ICQ UIN: 2488983



Sat, 16 Dec 2000 03:00:00 GMT  
 Changing font style in CEdit derived control.

You can use the CWnd::SetFont() function after you have created the desired
font.

John

Quote:

>Hi there,

>To limit character input to a CEdit control I derived a class from CEdit

and overloaded (is that the
Quote:
>word?) the OnChar event handler. This all works just fine, except that the

font style in a manually
Quote:
>(that is run-time) created CEdit control is "System" (it looks like it
anyway).
>So my question is: How does one change the default font style of a run time

created Edit control?
Quote:

>Thanks in advance,

>Sytse.
>(It would greatly benefit the correct delivery of your mail if you replace

my nickname with lonehelm
Quote:
>before replying to me in person)

>ICQ UIN: 2488983



Sat, 16 Dec 2000 03:00:00 GMT  
 Changing font style in CEdit derived control.

Thanks.

Sytse.
(It would greatly benefit the correct delivery of your mail if you replace my nickname with lonehelm
before replying to me in person)

ICQ UIN: 2488983



Sun, 17 Dec 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing font within a class derived from CEdit

2. Changing the style of a CEdit control

3. Changing Font in CEdit control

4. Changing the font of a CEdit control (non dialog)

5. How can I change the font of a CEdit control

6. How to change the font size for a CEdit control

7. changing font on a CEdit control

8. How to change font of run-time CEdit controls

9. Changing Font style and size in control windows

10. Changing Font in a CEdit control

11. CEdit control .. change Font selection

12. CEdit controls and changing the font color

 

 
Powered by phpBB® Forum Software