Re: Globaler Cursor



Hi Juergen,

Das machst Du indem du ein
maximales Fenster ohne Border erzeugst dann vom
Desktop ein Screenshot herstellen, deinen eigenen
Cursor erzeugst und das ganze als Bitmap speicherst:

Natürlich obligt der Gedanke dies tun zu wollen einer
Designchwäche^^

void CCaptureDesktopDlg::OnPaint()
{
CPaintDC dc(this);
CWnd* pDesktop(GetDesktopWindow());
CDC* pDesktopDC(pDesktop->GetWindowDC());
CRect rc;pDesktop->GetWindowRect(&rc);
CBitmap
bitmap;bitmap.CreateCompatibleBitmap(pDesktopDC,rc.Width(),rc.Height());
CDC memdc;memdc.Attach(pDesktopDC->m_hDC);
memdc.SelectObject(&bitmap);
GetClientRect(&rc);
dc.BitBlt(0, 0, rc.Width(), rc.Height(), &memdc, 0, 0, SRCCOPY);
}

grüße
Karsten Schulz


"Juergen Thuemmler" <thue@xxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23LpIQGFLIHA.5328@xxxxxxxxxxxxxxxxxxxxxxx
Hi *.*,

ich muß für Screenshotzwecke temporär den Cursor auf dem gesamten Desktop
(egal über welchem Fenster) temporär auf "Fadenkreuz" setzen. Wie macht
man sowas? LoadCursor() und SetCursor() zeigen keine Wirkung...

Jürgen.



.



Relevant Pages

  • Re: Had some strange happenings...
    ... Out of the blue appeared on the screen an unusual shaped cursor ... Scroll Wheel works as normal, without the Middle Button needing to ... Any chance of a ScreenShot of it? ... stored in the "Cursors" folder, ...
    (uk.people.silversurfers)
  • Re: Detecting a new graphic card
    ... normal user, the quality of the image looks fine, but when I run a ... I get a bad quality image. ... cursor with the arrow keys inside a new message window in Thunderbird. ... A screenshot is at: ...
    (Fedora)
  • Re: Had some strange happenings...
    ... Out of the blue appeared on the screen an unusual shaped cursor ... and pointer - both black as I recall.The cursor was a big black ... Any chance of a ScreenShot of it? ... Like you I do not recognise in there the black diamond cursor that I ...
    (uk.people.silversurfers)
  • =?Windows-1252?Q?Re:_Blaue_Boxen_anstatt_Checkboxen_und_im_Kontext_Me?= =?Windows-1252?Q?n=F
    ... Hier ein Screenshot von dem Problem: ... Rechtsklick auf Desktop, Eigenschaften. ... Ansonsten versuche: ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: How Hide Cursor? Dont Work!
    ... > while you are trying to take the screenshot so the cursor is shown to ... is there a chance to get notified when the App has finished loading? ... > show the cursor in the first place, I doubt you can hide it. ... > only then launch your managed app). ...
    (microsoft.public.dotnet.framework.compactframework)

Quantcast