Changing caret size for CEdit control
S. R. Subramanian x751 -- subbu@aspectdv.com
Tuesday, September 03, 1996
Hi,
Environment: WinNT 3.51, VC++ 2.2
I am working on a database application. For editing records
in the database I create forms dynamically based on the meta
data about the tables and columns.
I am using CFormView derived class as my view class. At runtime
I add CButton and CEdit derived classes to this form view. User
can change the font and the font size for the text displayed in
these controls.
My problem is when I set the font size below 10 the edit control
does not show the caret or the characters typed on the keyboard.
My question is doesn't CEdit automatically change the caret size
to the font size being used. (When I increase the font size the
caret size appears to have changed).
S. R. Subramanian
Mike Blaszczak -- mikeblas@nwlink.com
Wednesday, September 11, 1996
At 02:33 PM 9/3/96 PDT, you wrote:
>Environment: WinNT 3.51, VC++ 2.2
>My problem is when I set the font size below 10 the edit control
>does not show the caret or the characters typed on the keyboard.
It should. Perhaps your video driver is buggy.
I'm running Windows NT 4.0 Server with a Matrox Millenium card
and the Millenium drivers from the NT CD. I tried setting the
dialog font to a six point Arial and still saw the caret--even
though the text itself was almost unreadably small.
>My question is doesn't CEdit automatically change the caret size
>to the font size being used.
It does. Perhaps Windows is trying to specify a size for the caret
that your video display driver rounds down to zero, or can't
correctly display for some other reason.
.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
| Вернуться в корень Архива
|