Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:20
karmendra_js20-Sep-05 0:20 
AnswerRe: Problem Creating object and accessing public member function. Pin
Bob Stanneveld20-Sep-05 0:38
Bob Stanneveld20-Sep-05 0:38 
GeneralRe: Problem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:51
karmendra_js20-Sep-05 0:51 
GeneralRe: Problem Creating object and accessing public member function. Pin
Satishkumar.B20-Sep-05 2:11
Satishkumar.B20-Sep-05 2:11 
Questionthreading in networking Pin
ppp00120-Sep-05 0:05
ppp00120-Sep-05 0:05 
AnswerRe: threading in networking Pin
Bob Stanneveld20-Sep-05 0:41
Bob Stanneveld20-Sep-05 0:41 
AnswerRe: threading in networking Pin
Glenn Inman20-Sep-05 2:29
Glenn Inman20-Sep-05 2:29 
QuestionChanging the BG color of a multiline edit box Pin
Mohammad A Gdeisat19-Sep-05 23:19
Mohammad A Gdeisat19-Sep-05 23:19 
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

QuestionSeveral pages working for one var, where to save it? Pin
followait19-Sep-05 23:13
followait19-Sep-05 23:13 
AnswerRe: Several pages working for one var, where to save it? Pin
Cedric Moonen19-Sep-05 23:33
Cedric Moonen19-Sep-05 23:33 
GeneralRe: Several pages working for one var, where to save it? Pin
toxcct20-Sep-05 3:23
toxcct20-Sep-05 3:23 
QuestionCompile time info gathering Pin
Rostfrei19-Sep-05 23:06
Rostfrei19-Sep-05 23:06 
QuestionProblem with two views Pin
karmendra_js19-Sep-05 22:53
karmendra_js19-Sep-05 22:53 
AnswerRe: Problem with two views Pin
Calc2019-Sep-05 23:40
Calc2019-Sep-05 23:40 
Questioncdecl or stdcall - foreign dll, no source, headers Pin
Garth J Lancaster19-Sep-05 22:46
professionalGarth J Lancaster19-Sep-05 22:46 
AnswerRe: cdecl or stdcall - foreign dll, no source, headers Pin
Tim Smith20-Sep-05 3:47
Tim Smith20-Sep-05 3:47 
GeneralRe: cdecl or stdcall - foreign dll, no source, headers Pin
Garth J Lancaster20-Sep-05 4:09
professionalGarth J Lancaster20-Sep-05 4:09 
QuestionGUI Architecture. Pin
karmendra_js19-Sep-05 22:41
karmendra_js19-Sep-05 22:41 
AnswerRe: GUI Architecture. Pin
Cedric Moonen19-Sep-05 22:54
Cedric Moonen19-Sep-05 22:54 
GeneralRe: GUI Architecture. Pin
karmendra_js20-Sep-05 0:30
karmendra_js20-Sep-05 0:30 
AnswerRe: GUI Architecture. Pin
Bob Stanneveld20-Sep-05 0:58
Bob Stanneveld20-Sep-05 0:58 
QuestionCreating .hlp file for my MFCApp Pin
anderslundsgard19-Sep-05 22:23
anderslundsgard19-Sep-05 22:23 
AnswerRe: Creating .hlp file for my MFCApp Pin
*Dreamz20-Sep-05 0:00
*Dreamz20-Sep-05 0:00 
QuestionMewtocol header and terminator Pin
Member 216100419-Sep-05 22:09
Member 216100419-Sep-05 22:09 
Questionrandom numbers Pin
Raza568019-Sep-05 22:07
Raza568019-Sep-05 22:07 

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.