Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running a console app hidden, no window Pin
Gunn3174-Jan-06 3:45
Gunn3174-Jan-06 3:45 
AnswerRe: Running a console app hidden, no window Pin
vipinasda24-Dec-05 7:16
vipinasda24-Dec-05 7:16 
AnswerRe: Running a console app hidden, no window Pin
Owner drawn26-Dec-05 17:27
Owner drawn26-Dec-05 17:27 
QuestionAnalyze sound volume? Pin
Matrim Cauthon23-Dec-05 3:03
Matrim Cauthon23-Dec-05 3:03 
Questionadd colors to buttons Pin
Manmohan_198323-Dec-05 2:58
Manmohan_198323-Dec-05 2:58 
AnswerRe: add colors to buttons Pin
FarPointer23-Dec-05 3:57
FarPointer23-Dec-05 3:57 
GeneralRe: add colors to buttons Pin
Manmohan_198325-Dec-05 18:21
Manmohan_198325-Dec-05 18:21 
GeneralRe: add colors to buttons Pin
FarPointer25-Dec-05 20:28
FarPointer25-Dec-05 20:28 
Make those buttons owner draw buttons and trap the WM_DRAWITEM

in your constructor <br />
CBrush brush1;<br />
 brush1.CreateSolidBrush(RGB(0,0,255)); <br />
Hope this solves your problem<br />
<br />
<br />
opps !!!!!!! Add this <br />
<code>/*HBRUSH CMy23Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) <br />
{<br />
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
	<br />
	if( nCtlColor == CTLCOLOR_BTN )<br />
	{<br />
		<br />
		return brush1;<br />
	}<br />
	return hbr;<br />
}


Regards
FarPointer


-- modified at 2:36 Monday 26th December, 2005
GeneralRe: add colors to buttons Pin
ThatsAlok25-Dec-05 21:03
ThatsAlok25-Dec-05 21:03 
Questionunsigned char Pin
Smith#23-Dec-05 0:36
Smith#23-Dec-05 0:36 
AnswerRe: unsigned char Pin
Russell'23-Dec-05 0:52
Russell'23-Dec-05 0:52 
AnswerRe: unsigned char Pin
toxcct23-Dec-05 2:18
toxcct23-Dec-05 2:18 
GeneralRe: unsigned char Pin
Nemanja Trifunovic24-Dec-05 10:09
Nemanja Trifunovic24-Dec-05 10:09 
GeneralRe: unsigned char Pin
segment_fault3-Jan-06 18:02
segment_fault3-Jan-06 18:02 
QuestionTo Delete Objects created by IMPLEMENT_DYNACREATE Pin
birajendu22-Dec-05 23:38
birajendu22-Dec-05 23:38 
AnswerRe: To Delete Objects created by IMPLEMENT_DYNACREATE Pin
Sheng Jiang 蒋晟24-Dec-05 9:28
Sheng Jiang 蒋晟24-Dec-05 9:28 
QuestionRGBQUAD in Bitmap Class Pin
vikas amin22-Dec-05 23:29
vikas amin22-Dec-05 23:29 
AnswerRe: RGBQUAD in Bitmap Class Pin
toxcct22-Dec-05 23:46
toxcct22-Dec-05 23:46 
AnswerRe: RGBQUAD in Bitmap Class Pin
Russell'22-Dec-05 23:56
Russell'22-Dec-05 23:56 
AnswerRe: RGBQUAD in Bitmap Class Pin
Amal P23-Dec-05 0:23
Amal P23-Dec-05 0:23 
Question#if Pin
Smith#22-Dec-05 22:54
Smith#22-Dec-05 22:54 
AnswerRe: #if Pin
Owner drawn22-Dec-05 23:10
Owner drawn22-Dec-05 23:10 
GeneralRe: #if Pin
Smith#22-Dec-05 23:37
Smith#22-Dec-05 23:37 
AnswerRe: #if Pin
toxcct22-Dec-05 23:18
toxcct22-Dec-05 23:18 
GeneralRe: #if Pin
Smith#22-Dec-05 23:40
Smith#22-Dec-05 23:40 

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.