Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Shell Namespace Extension Question Pin
ThatsAlok1-Sep-06 1:57
ThatsAlok1-Sep-06 1:57 
QuestionHow to create GDI+ Metafile from CMetaFileDC? Pin
shinano31-Aug-06 14:15
shinano31-Aug-06 14:15 
AnswerRe: How to create GDI+ Metafile from CMetaFileDC? Pin
Hamid_RT31-Aug-06 23:05
Hamid_RT31-Aug-06 23:05 
GeneralRe: How to create GDI+ Metafile from CMetaFileDC? Pin
shinano3-Sep-06 14:27
shinano3-Sep-06 14:27 
GeneralRe: How to create GDI+ Metafile from CMetaFileDC? Pin
Hamid_RT3-Sep-06 22:12
Hamid_RT3-Sep-06 22:12 
GeneralRe: How to create GDI+ Metafile from CMetaFileDC? [modified] Pin
shinano4-Sep-06 13:27
shinano4-Sep-06 13:27 
QuestionClipping child windows Pin
Dave Calkins31-Aug-06 13:44
Dave Calkins31-Aug-06 13:44 
AnswerRe: Clipping child windows Pin
mfranco_neto31-Aug-06 18:11
mfranco_neto31-Aug-06 18:11 
I am just beginning at this stuff, but after long hours... here is how I managed to clip child windows:
<br />
..... OnPaint(....)<br />
{<br />
	::GetClientRect(m_hWnd,&test_rect);<br />
	<br />
	::GetClientRect(m_ReadRssWnd,&bk_rect);<br />
<br />
	hRgn2= CreateRectRgn(test_rect.right/3,test_rect.top,test_rect.right-300,test_rect.bottom);<br />
	hRgn = CreateRectRgn(bk_rect.left+200,bk_rect.top,bk_rect.right-100,bk_rect.bottom);<br />
<br />
	hDC2 =::BeginPaint(m_hWnd,&ps2);<br />
	hDC  =::BeginPaint(m_ReadRssWnd,&ps);<br />
<br />
	::SelectClipRgn(hDC2,hRgn2);<br />
	::SelectClipRgn(hDC,hRgn);	<br />
<br />
	::SetTextColor(hDC,RGB(255,255,255));	<br />
	::SetBkColor(hDC,RGB(255,0,0));<br />
<br />
	::FillRect(hDC2,&test_rect,hBr2);	<br />
	::FillRect(hDC,&bk_rect,hBr);<br />
<br />
	::EndPaint(m_ReadRssWnd,&ps);<br />
	::EndPaint(m_hWnd,&ps2);<br />
<br />
	return 0;<br />
}


Now, this is probably not the best solution (or even the right one), but you will get your clip regions...

Now, if you could help me with my problem... just take a look at the message above "EraseBacgnd - mfranco_neto".

Thanks in advance


Mfranco
QuestionProblem with CDC:SetMapMode (in Release-Mode) [modified] Pin
AnTri31-Aug-06 12:02
AnTri31-Aug-06 12:02 
AnswerRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Stephen Hewitt31-Aug-06 13:47
Stephen Hewitt31-Aug-06 13:47 
AnswerRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Jun Du31-Aug-06 16:50
Jun Du31-Aug-06 16:50 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Stephen Hewitt31-Aug-06 19:45
Stephen Hewitt31-Aug-06 19:45 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
AnTri31-Aug-06 21:43
AnTri31-Aug-06 21:43 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Stephen Hewitt31-Aug-06 21:45
Stephen Hewitt31-Aug-06 21:45 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
AnTri31-Aug-06 23:03
AnTri31-Aug-06 23:03 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
AnTri31-Aug-06 21:24
AnTri31-Aug-06 21:24 
AnswerRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Stephen Hewitt31-Aug-06 20:02
Stephen Hewitt31-Aug-06 20:02 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
AnTri31-Aug-06 22:20
AnTri31-Aug-06 22:20 
GeneralRe: Problem with CDC:SetMapMode (in Release-Mode) Pin
Stephen Hewitt31-Aug-06 23:07
Stephen Hewitt31-Aug-06 23:07 
QuestionProblem with a button in an SDI application Pin
Eikthrynir31-Aug-06 9:44
Eikthrynir31-Aug-06 9:44 
AnswerRe: Problem with a button in an SDI application [modified] Pin
prasad_som31-Aug-06 20:50
prasad_som31-Aug-06 20:50 
QuestionSetNamedSecurityInfo 2 Pin
RomTibi31-Aug-06 9:29
RomTibi31-Aug-06 9:29 
QuestionPreventing others to access my process via interprocess communication Pin
Marco225031-Aug-06 9:07
Marco225031-Aug-06 9:07 
AnswerRe: Preventing others to access my process via interprocess communication Pin
Jun Du31-Aug-06 9:42
Jun Du31-Aug-06 9:42 
GeneralDllMain and its usage (Followup to a post by Jeremy Falcon) Pin
PJ Arends31-Aug-06 8:46
professionalPJ Arends31-Aug-06 8:46 

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.