15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


How change fore&back color...

Atsushi Yamamoto -- yamamoto@fsi.co.jp
Tuesday, January 09, 1996

Dear Doctors...

We would appreciate it, if you will let us know how can we 
change the foreground and background color of edit view window 
over splitter window.

Now we develop a program for Windows 95 and Windows NT 
3.51 with VC++ 2.0 Japanese version, because 4.0 will be coming 
soon until end of this month.
We create a splitter window, and embed CEditView windows 
over splitter window clients.  So we are not able to overwrite an 
OnCtlColor function.

Best Regards,

Atsushi Yamamoto
FUJI SOFT Inc.
(yamamoto@fsi.co.jp)




Mike Blaszczak -- mikeblas@interserv.com
Wednesday, January 10, 1996

[Micro-diget: Internationalized version]

I'll probably make this pretty bad, but I feel like I can get away with lots 
of English words:

On Tue, 9 Jan 1996, Atsushi Yamamoto  wrote:
>Dear Doctors...

Konnichiwa, Yamamoto san!

>We would appreciate it, if you will let us know how can we 
>change the foreground and background color of edit view window 
>over splitter window.

>We create a splitter window, and embed CEditView windows 
>over splitter window clients.  So we are not able to overwrite an 
>OnCtlColor function.

ClassWizard no Message Map tab de "=WM_CTLCOLOR" wo oshite kudasai.  Kono 
option wa Refletctor Message wo tsukuteimasu.  Tech Note #62 wo yonde 
kudasai--sore de wa Reflector Message no  de gozaimasu.

Yoroshiku!

Translation:

On Tue, 9 Jan 1996, Atsushi Yamamoto  wrote:
>Dear Doctors...

Hello, Senator.

>We would appreciate it, if you will let us know how can we 
>change the foreground and background color of edit view window 
>over splitter window.

>We create a splitter window, and embed CEditView windows 
>over splitter window clients.  So we are not able to overwrite an 
>OnCtlColor function.

Instead, you need to use the reflected WM_CTLCOLOR message.  You'll write a 
handler for ON_WM_CTLCOLOR_REFLECT.  You'll see this in the ClassWizard as 
"=WM_CTLCOLOR".  You should read Tech Note #62, which explains how all this 
works.

.B ekiM
--
TCHAR szDisc[] = _T("These words are my own; I do not speak for Microsoft.");





| Вернуться в корень Архива |