Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCall Java function from C++ DLL Pin
xueshunnai18-May-05 7:31
xueshunnai18-May-05 7:31 
GeneralInvalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 7:02
Blake Miller18-May-05 7:02 
GeneralRe: Invalidating Proper 'Screen' Area Pin
David Crow18-May-05 8:22
David Crow18-May-05 8:22 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 8:29
Blake Miller18-May-05 8:29 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 8:23
professionalRavi Bhavnani18-May-05 8:23 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 8:36
Blake Miller18-May-05 8:36 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 8:45
professionalRavi Bhavnani18-May-05 8:45 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 9:32
Blake Miller18-May-05 9:32 
No it is not overkill.
This is what I have so far, and still no result. Am I missing something?

	HWND	hWndDesktop = ::GetDesktopWindow();<br />
	HDC		hDcDesktop = ::GetDC(hWndDesktop);<br />
<br />
	int nX = BOUND(m_ptZoom.x, m_nxZoomed / 2, m_nxScreenMax - (m_nxZoomed / 2));<br />
	int nY = BOUND(m_ptZoom.y, m_nyZoomed / 2, m_nyScreenMax - (m_nyZoomed / 2));<br />
<br />
	RECT rBounding, rErase;<br />
	rBounding.left   = nX - m_nxZoomed / 2;<br />
	rBounding.top    = nY - m_nyZoomed / 2;<br />
	rBounding.right  = rBounding.left + m_nxZoomed;<br />
	rBounding.bottom = rBounding.top  + m_nyZoomed;<br />
	::InflateRect(&rBounding, 1, 1);<br />
<br />
	::CopyRect(&rErase, &rBounding);<br />
	::MapWindowPoints(NULL, hWndDesktop, (LPPOINT)&rErase, 2);<br />
	HRGN hRegion = ::CreateRectRgn(rErase.left, rErase.top, rErase.right, rErase.bottom);<br />
//	::ExtSelectClipRgn(hDcDesktop, hRegion, RGN_OR);<br />
	::InvalidateRgn(hWndDesktop, hRegion, TRUE);<br />
	::UpdateWindow(hWndDesktop);<br />
<br />
	::DeleteObject(hRegion);<br />
	::ReleaseDC(hWndDesktop, hDcDesktop);<br />

GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 10:00
professionalRavi Bhavnani18-May-05 10:00 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 11:12
Blake Miller18-May-05 11:12 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Ravi Bhavnani18-May-05 11:17
professionalRavi Bhavnani18-May-05 11:17 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller18-May-05 11:33
Blake Miller18-May-05 11:33 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Jörgen Sigvardsson18-May-05 12:39
Jörgen Sigvardsson18-May-05 12:39 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake V. Miller18-May-05 18:41
Blake V. Miller18-May-05 18:41 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Jörgen Sigvardsson18-May-05 20:15
Jörgen Sigvardsson18-May-05 20:15 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller20-May-05 9:13
Blake Miller20-May-05 9:13 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Jörgen Sigvardsson20-May-05 9:17
Jörgen Sigvardsson20-May-05 9:17 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake Miller20-May-05 9:38
Blake Miller20-May-05 9:38 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Jörgen Sigvardsson20-May-05 9:50
Jörgen Sigvardsson20-May-05 9:50 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake V. Miller21-May-05 18:31
Blake V. Miller21-May-05 18:31 
GeneralRe: Invalidating Proper 'Screen' Area Pin
doublebug21-May-05 2:40
doublebug21-May-05 2:40 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Blake V. Miller21-May-05 18:48
Blake V. Miller21-May-05 18:48 
GeneralRe: Invalidating Proper 'Screen' Area Pin
Jörgen Sigvardsson18-May-05 12:37
Jörgen Sigvardsson18-May-05 12:37 
GeneralPause Journalrecord Pin
P Gibson18-May-05 6:14
P Gibson18-May-05 6:14 
GeneralRe: Pause Journalrecord Pin
S. Senthil Kumar18-May-05 7:30
S. Senthil Kumar18-May-05 7:30 

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.