Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: closing main window, close IE window problem Pin
Achim Klein20-Sep-05 21:17
Achim Klein20-Sep-05 21:17 
GeneralRe: closing main window, close IE window problem Pin
babyspidy20-Sep-05 21:31
babyspidy20-Sep-05 21:31 
Questioncrashes on close() Pin
bonosa20-Sep-05 9:57
bonosa20-Sep-05 9:57 
AnswerRe: crashes on close() Pin
David Crow20-Sep-05 10:32
David Crow20-Sep-05 10:32 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 10:45
bonosa20-Sep-05 10:45 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 11:03
bonosa20-Sep-05 11:03 
GeneralRe: crashes on close() Pin
David Crow21-Sep-05 3:25
David Crow21-Sep-05 3:25 
QuestionChanging the BG color of a multiline edit box Pin
Mohammad A Gdeisat20-Sep-05 9:44
Mohammad A Gdeisat20-Sep-05 9:44 
Hi all,
I have three questions about changing an edit box BG color:

I am trying to change the background color of a multi line edit box, I use the WM_CTLCOLOR message and it works but:

First:

initially, when the color changes, the area that changes is only the first line of the edit box (the first line has the desired background color, while the other lines have the white(default) background color), and as I add lines (Enter Key) the following line changes color and so on.

how to solve this situation? I want the whole control to be painted with the desired bg color.

Second, Even when I change the color of a single line edit box, the color changes, but there still small rectangles of the default bg color in the bottom and the right side of the edit box, it really doesnt exactly have the same effect as writing in VB:

Text1.BGColor=vbBlack

Why?!!!

Thrid and last,

When I use the WM_CTLCOLOR message to change my edit box bg color, if the Locked state of the edit box is set, the color is not changed at all, I dont think its wrong to have a locked edit box with a black bg color.

how to solve this?

I hope I will find some help here.

Regards,
Mohammad Gdeisat


AnswerRe: Changing the BG color of a multiline edit box Pin
Christopher Lloyd20-Sep-05 12:44
Christopher Lloyd20-Sep-05 12:44 
QuestionTMS InnerView 2.1 Pin
davemassey20-Sep-05 8:33
davemassey20-Sep-05 8:33 
AnswerRe: TMS InnerView 2.1 Pin
Alexander M.,20-Sep-05 8:35
Alexander M.,20-Sep-05 8:35 
QuestionRetrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 7:34
Liu Shuai20-Sep-05 7:34 
AnswerRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Alexander M.,20-Sep-05 8:38
Alexander M.,20-Sep-05 8:38 
GeneralRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 9:21
Liu Shuai20-Sep-05 9:21 
QuestionSlidder Display Pin
P.Sunitha Kiranmaye20-Sep-05 6:20
P.Sunitha Kiranmaye20-Sep-05 6:20 
AnswerRe: Slidder Display Pin
David Crow20-Sep-05 7:03
David Crow20-Sep-05 7:03 
AnswerRe: Slidder Display Pin
PJ Arends20-Sep-05 7:50
professionalPJ Arends20-Sep-05 7:50 
QuestionRunning a batch file Pin
Camron20-Sep-05 5:26
Camron20-Sep-05 5:26 
AnswerRe: Running a batch file Pin
David Crow20-Sep-05 5:37
David Crow20-Sep-05 5:37 
GeneralRe: Running a batch file Pin
Camron20-Sep-05 5:49
Camron20-Sep-05 5:49 
GeneralRe: Running a batch file Pin
David Crow20-Sep-05 6:04
David Crow20-Sep-05 6:04 
AnswerRe: Running a batch file Pin
bugDanny20-Sep-05 7:16
bugDanny20-Sep-05 7:16 
AnswerRe: Running a batch file Pin
Christopher Lloyd20-Sep-05 12:47
Christopher Lloyd20-Sep-05 12:47 
AnswerRe: Running a batch file Pin
Johann Gerell20-Sep-05 19:41
Johann Gerell20-Sep-05 19:41 
QuestionCListCtrl custom draw problem Pin
followait20-Sep-05 4:48
followait20-Sep-05 4:48 

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.