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

C / C++ / MFC

 
QuestionRe: Modal and Modeless Dialogs / Non-Working child dialog controls ... Pin
David Crow5-Dec-06 2:42
David Crow5-Dec-06 2:42 
QuestionChange bg color of editbox. Pin
acerunner3164-Dec-06 11:13
acerunner3164-Dec-06 11:13 
AnswerRe: Change bg color of editbox. Pin
Christian Graus4-Dec-06 11:55
protectorChristian Graus4-Dec-06 11:55 
GeneralRe: Change bg color of editbox. Pin
acerunner3164-Dec-06 12:09
acerunner3164-Dec-06 12:09 
AnswerRe: Change bg color of editbox. Pin
Mark Salsbery4-Dec-06 13:27
Mark Salsbery4-Dec-06 13:27 
GeneralRe: Change bg color of editbox. Pin
#realJSOP5-Dec-06 0:20
professional#realJSOP5-Dec-06 0:20 
GeneralRe: Change bg color of editbox. Pin
Mark Salsbery5-Dec-06 5:23
Mark Salsbery5-Dec-06 5:23 
AnswerHow to make all your edit controls "Christmasy" Pin
Mark Salsbery4-Dec-06 13:44
Mark Salsbery4-Dec-06 13:44 
Here's a Christmas edit box (adjust colors for your region/season/religion/etc):

(This is MFC code but API calls are similar)
CBrush RedBrush; //class member in MyDlg.h
...
// in CMyDlg consructor
RedBrush.CreateSolidBrush(RGB(0xFF,0x00,0x00));
...
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

	if (nCtlColor == CTLCOLOR_EDIT)
	{
		pDC->SetTextColor(RGB(0x00,0xFF,0x00));
		pDC->SetBkColor(RGB(0xFF,0x00,0x00));
		hbr = RedBrush;
	}

	return hbr;
}



-- modified at 11:25 Tuesday 5th December, 2006
GeneralRe: Change bg color of editbox. Pin
ThatsAlok4-Dec-06 22:39
ThatsAlok4-Dec-06 22:39 
GeneralRe: Change bg color of editbox. Pin
Mark Salsbery5-Dec-06 5:21
Mark Salsbery5-Dec-06 5:21 
AnswerRe: Change bg color of editbox. Pin
vikas amin4-Dec-06 23:41
vikas amin4-Dec-06 23:41 
AnswerRe: Change bg color of editbox. Pin
digitalmythology5-Dec-06 15:13
digitalmythology5-Dec-06 15:13 
QuestionHow to send exe file between 2 computer using TCP/IP ? Pin
Yanshof4-Dec-06 8:11
Yanshof4-Dec-06 8:11 
AnswerRe: How to send exe file between 2 computer using TCP/IP ? Pin
CPallini4-Dec-06 8:19
mveCPallini4-Dec-06 8:19 
AnswerRe: How to send exe file between 2 computer using TCP/IP ? Pin
Mark Salsbery4-Dec-06 8:21
Mark Salsbery4-Dec-06 8:21 
AnswerRe: How to send exe file between 2 computer using TCP/IP ? Pin
ThatsAlok4-Dec-06 22:37
ThatsAlok4-Dec-06 22:37 
QuestionDraging(moving) dialog that doesn't hav title bar Pin
Super Hornet4-Dec-06 7:35
Super Hornet4-Dec-06 7:35 
AnswerRe: Draging(moving) dialog that doesn't hav title bar Pin
David Crow4-Dec-06 7:47
David Crow4-Dec-06 7:47 
GeneralRe: Draging(moving) dialog that doesn't hav title bar Pin
Super Hornet4-Dec-06 8:05
Super Hornet4-Dec-06 8:05 
AnswerRe: Dialog Question Pin
David Crow4-Dec-06 7:51
David Crow4-Dec-06 7:51 
GeneralRe: Dialog Question Pin
Mark Salsbery4-Dec-06 8:23
Mark Salsbery4-Dec-06 8:23 
GeneralRe: Dialog Question Pin
David Crow4-Dec-06 9:56
David Crow4-Dec-06 9:56 
GeneralRe: Dialog Question Pin
Hamid_RT4-Dec-06 17:47
Hamid_RT4-Dec-06 17:47 
GeneralRe: Dialog Question Pin
Mark Salsbery4-Dec-06 17:56
Mark Salsbery4-Dec-06 17:56 
QuestionHow to get ActiveX Control ID From ActiveX Pin
narayanagvs4-Dec-06 3:38
narayanagvs4-Dec-06 3: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.