Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDrawing Pin
Demian Panello27-Sep-06 13:26
Demian Panello27-Sep-06 13:26 
AnswerRe: Drawing Pin
Stephen Hewitt27-Sep-06 14:07
Stephen Hewitt27-Sep-06 14:07 
AnswerRe: Drawing Pin
Anilkumar K V27-Sep-06 19:41
Anilkumar K V27-Sep-06 19:41 
GeneralRe: Drawing Pin
Demian Panello28-Sep-06 1:58
Demian Panello28-Sep-06 1:58 
AnswerRe: Drawing Pin
Hamid_RT29-Sep-06 8:11
Hamid_RT29-Sep-06 8:11 
GeneralRe: Drawing Pin
Demian Panello29-Sep-06 11:02
Demian Panello29-Sep-06 11:02 
GeneralRe: Drawing Pin
Hamid_RT29-Sep-06 19:42
Hamid_RT29-Sep-06 19:42 
QuestionAfter WM_PAINT, button disappears Pin
mfranco_neto27-Sep-06 11:51
mfranco_neto27-Sep-06 11:51 
Hi,

After creating a button for a toolbar on the OnCreate msg handler, I need to include a bitmap to the ie toolbar. However, after receiving a WM_PAINT message, the button disappears, even if I do nothing inside the OnPaint msg handler, like:

<br />
<br />
LRESULT CMFToolbar::OnPaint(UINT uMsg,WPARAM wParam, LPARAM lParam, BOOL& bHandled)<br />
{<br />
	::OutputDebugString("WM_PAINT");<br />
	<br />
	PAINTSTRUCT ps;<br />
<br />
	HDC hdc = ::BeginPaint(m_hWnd,&ps);<br />
	::EndPaint(m_hWnd,&ps);<br />
<br />
	return 0;<br />
	<br />
}<br />


and I just can't make it appear again, but it is still there, it is "clickable", but not visible.

Anyone???
AnswerRe: After WM_PAINT, button disappears Pin
Jörgen Sigvardsson27-Sep-06 13:39
Jörgen Sigvardsson27-Sep-06 13:39 
AnswerRe: After WM_PAINT, button disappears Pin
Christian Graus27-Sep-06 15:57
protectorChristian Graus27-Sep-06 15:57 
GeneralRe: After WM_PAINT, button disappears Pin
mfranco_neto27-Sep-06 16:35
mfranco_neto27-Sep-06 16:35 
GeneralRe: After WM_PAINT, button disappears Pin
mfranco_neto27-Sep-06 17:43
mfranco_neto27-Sep-06 17:43 
GeneralRe: After WM_PAINT, button disappears Pin
Shog927-Sep-06 18:51
sitebuilderShog927-Sep-06 18:51 
AnswerRe: After WM_PAINT, button disappears Pin
Shog927-Sep-06 18:50
sitebuilderShog927-Sep-06 18:50 
QuestionDialog control Pin
LCI27-Sep-06 11:12
LCI27-Sep-06 11:12 
AnswerRe: Dialog control Pin
Christian Graus27-Sep-06 11:24
protectorChristian Graus27-Sep-06 11:24 
GeneralRe: Dialog control Pin
LCI27-Sep-06 11:34
LCI27-Sep-06 11:34 
GeneralRe: Dialog control Pin
Christian Graus27-Sep-06 11:40
protectorChristian Graus27-Sep-06 11:40 
AnswerRe: Dialog control Pin
nutkase27-Sep-06 19:15
nutkase27-Sep-06 19:15 
GeneralRe: Dialog control Pin
LCI28-Sep-06 5:10
LCI28-Sep-06 5:10 
GeneralRe: Dialog control Pin
S Douglas30-Sep-06 23:15
professionalS Douglas30-Sep-06 23:15 
AnswerRe: Dialog control Pin
ShilpiP27-Sep-06 19:57
ShilpiP27-Sep-06 19:57 
AnswerRe: Dialog control Pin
David Crow28-Sep-06 3:26
David Crow28-Sep-06 3:26 
GeneralRe: Dialog control Pin
LCI28-Sep-06 5:40
LCI28-Sep-06 5:40 
GeneralRe: Dialog control Pin
David Crow28-Sep-06 5:47
David Crow28-Sep-06 5:47 

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.