Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CArray --> afxtempl.h(443) : error C2582 Pin
Nibu babu thomas11-Oct-07 23:34
Nibu babu thomas11-Oct-07 23:34 
AnswerRe: CArray --> afxtempl.h(443) : error C2582 Pin
David Crow12-Oct-07 2:58
David Crow12-Oct-07 2:58 
GeneralRe: CArray --> afxtempl.h(443) : error C2582 Pin
sdancer7514-Oct-07 20:21
sdancer7514-Oct-07 20:21 
GeneralRe: CArray --> afxtempl.h(443) : error C2582 Pin
David Crow15-Oct-07 3:15
David Crow15-Oct-07 3:15 
QuestionStatic size Pin
johnalek11-Oct-07 23:14
johnalek11-Oct-07 23:14 
AnswerRe: Static size Pin
CPallini11-Oct-07 23:29
mveCPallini11-Oct-07 23:29 
AnswerRe: Static size Pin
jhwurmbach11-Oct-07 23:30
jhwurmbach11-Oct-07 23:30 
QuestionI'm geting furious Pin
josip cagalj11-Oct-07 23:02
josip cagalj11-Oct-07 23:02 
Hi!
I have a dialog which I painted using 'OnEraseBkgnd' function. I placed a CTransparentStatic ctrl (static ctrl with TRANSPARENT BkMode). I wanted to have the same color as dialog background.
I also used:
<br />
HBRUSH CDialList::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) <br />
{<br />
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
	if( nCtlColor == CTLCOLOR_STATIC )<br />
	{<br />
		pDC->SetBkColor(BkClr);<br />
		pDC->SetTextColor(TxtClr); <br />
	}<br />
	return hbr;<br />
}

Where BkClr is what I wanted for static ctrl to be painted, and TxtClr is RGB(0,0,0).
When dialog first appear the static control is not painted (it's gray) but on first text placment it gets back colored but only for text lenght, not hole rectangle!!!
I did everything and still cant get static ctrl to get all backround painted and on it's first appear?
Help please!
AnswerRe: I'm geting furious Pin
josip cagalj11-Oct-07 23:09
josip cagalj11-Oct-07 23:09 
GeneralRe: I'm geting furious Pin
Nelek12-Oct-07 0:57
protectorNelek12-Oct-07 0:57 
Questioncomparing two double values Pin
KASR111-Oct-07 21:34
KASR111-Oct-07 21:34 
AnswerRe: comparing two double values Pin
chandu00411-Oct-07 21:36
chandu00411-Oct-07 21:36 
GeneralRe: comparing two double values Pin
KASR111-Oct-07 21:39
KASR111-Oct-07 21:39 
GeneralRe: comparing two double values Pin
chandu00411-Oct-07 21:41
chandu00411-Oct-07 21:41 
GeneralRe: comparing two double values Pin
KASR111-Oct-07 21:44
KASR111-Oct-07 21:44 
GeneralRe: comparing two double values Pin
chandu00411-Oct-07 21:45
chandu00411-Oct-07 21:45 
GeneralRe: comparing two double values Pin
David Crow12-Oct-07 3:02
David Crow12-Oct-07 3:02 
GeneralJust curiosity Pin
Nelek12-Oct-07 3:53
protectorNelek12-Oct-07 3:53 
GeneralRe: Just curiosity Pin
David Crow12-Oct-07 4:05
David Crow12-Oct-07 4:05 
AnswerRe: comparing two double values Pin
Nibu babu thomas11-Oct-07 21:44
Nibu babu thomas11-Oct-07 21:44 
GeneralRe: comparing two double values Pin
David Crow12-Oct-07 3:19
David Crow12-Oct-07 3:19 
AnswerRe: comparing two double values Pin
Nelek12-Oct-07 1:03
protectorNelek12-Oct-07 1:03 
QuestionSearchin hex arry Pin
aamir ali11-Oct-07 21:10
aamir ali11-Oct-07 21:10 
AnswerRe: please help Pin
chandu00411-Oct-07 21:22
chandu00411-Oct-07 21:22 
QuestionRe: please help Pin
CPallini11-Oct-07 22:07
mveCPallini11-Oct-07 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.