Click here to Skip to main content
15,896,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handling events for the controls on a Win32 dialog. Pin
JudyL_MD23-Jul-08 9:04
JudyL_MD23-Jul-08 9:04 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
Hari-Adarapu23-Jul-08 9:45
Hari-Adarapu23-Jul-08 9:45 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
JudyL_MD23-Jul-08 10:06
JudyL_MD23-Jul-08 10:06 
AnswerRe: Handling events for the controls on a Win32 dialog. Pin
Mark Salsbery23-Jul-08 9:57
Mark Salsbery23-Jul-08 9:57 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
Hari-Adarapu28-Jul-08 10:41
Hari-Adarapu28-Jul-08 10:41 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
Mark Salsbery28-Jul-08 13:26
Mark Salsbery28-Jul-08 13:26 
GeneralRe: Handling events for the controls on a Win32 dialog. Pin
Hari-Adarapu15-Aug-08 5:22
Hari-Adarapu15-Aug-08 5:22 
QuestionChanging a disabled edit ctrl's color. Pin
Like2Byte23-Jul-08 8:43
Like2Byte23-Jul-08 8:43 
I'm having trouble figuring out how to change the color of text in an edit control when it is disabled; such that the light grey (disabled) is black instead.

Let's just say I have an edit control ('IDC_EDIT1').
CFont font; //in header

font.CreatePointFont(280, "Arial Bold");
CWnd *pWnd = ((CWnd*)GetDlgItem(IDC_EDIT1);
pWnd->EnableWindow(FALSE); //disables window
//now I'd like to change the color of the text so it stays black.


Any help would be greatly appreciated.
AnswerRe: Changing a disabled edit ctrl's color. Pin
Mark Salsbery23-Jul-08 9:13
Mark Salsbery23-Jul-08 9:13 
GeneralRe: Changing a disabled edit ctrl's color. Pin
Like2Byte23-Jul-08 9:58
Like2Byte23-Jul-08 9:58 
GeneralRe: Changing a disabled edit ctrl's color. Pin
Mark Salsbery23-Jul-08 10:03
Mark Salsbery23-Jul-08 10:03 
GeneralRe: Changing a disabled edit ctrl's color. Pin
Like2Byte23-Jul-08 10:08
Like2Byte23-Jul-08 10:08 
GeneralRe: Changing a disabled edit ctrl's color. Pin
Mark Salsbery23-Jul-08 10:12
Mark Salsbery23-Jul-08 10:12 
GeneralRe: Changing a disabled edit ctrl's color. Pin
led mike23-Jul-08 11:46
led mike23-Jul-08 11:46 
QuestionWhy doesn't message pump/loop block all threads? Pin
sawerr23-Jul-08 7:38
sawerr23-Jul-08 7:38 
AnswerRe: Why doesn't message pump/loop block all threads? Pin
Mark Salsbery23-Jul-08 8:11
Mark Salsbery23-Jul-08 8:11 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
sawerr23-Jul-08 8:18
sawerr23-Jul-08 8:18 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
Luc Pattyn23-Jul-08 8:30
sitebuilderLuc Pattyn23-Jul-08 8:30 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
sawerr23-Jul-08 8:35
sawerr23-Jul-08 8:35 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
Luc Pattyn23-Jul-08 8:49
sitebuilderLuc Pattyn23-Jul-08 8:49 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
Mark Salsbery23-Jul-08 8:48
Mark Salsbery23-Jul-08 8:48 
GeneralRe: Why doesn't message pump/loop block all threads? Pin
sawerr23-Jul-08 9:17
sawerr23-Jul-08 9:17 
QuestionUnditable combobox via code Pin
hariakuthota23-Jul-08 7:14
hariakuthota23-Jul-08 7:14 
QuestionRe: Unditable combobox via code Pin
CPallini23-Jul-08 7:21
mveCPallini23-Jul-08 7:21 
AnswerRe: Unditable combobox via code Pin
hariakuthota23-Jul-08 8:38
hariakuthota23-Jul-08 8:38 

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.