Re: handles

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Webber (dave_at_musical.demon.co.uk)
Date: 05/20/04


Date: Thu, 20 May 2004 17:44:54 +0100


"Michael" <slick_mick_00@hotmail.com> wrote in message
news:c8iljm$npj$1@hercules.btinternet.com...

> hInstance

Your programs and DLLs which are running have one of these which
identifies them. Check things like GetModuleFilename() and
GetProcAddress()

> hWnd

Identifies a window. If you want any information at all about the
window, then you need this to tell you which one.

> hDC

This is to identify "a surface for drawing on": you can create one
to correspond with a window to draw in the client area, but you also
need one to draw on the printer and other devices.

Dave

-- 
David Webber
Author MOZART the music processor for Windows -
http://www.mozart-music-software.com
For discussion/support see
http://www.mozart-music-software.com/mzusers/mailinglist.htm


Relevant Pages

  • GDI+ drawing speed within MFC dialog (help)
    ... I need to draw a raw data plot into a framed area of a bigger MFC ... dialog window. ... performance of the system and found a useful set of benchmark programs at http://www.codeproject.com/vcpp/gdiplus/gdiplusspeed.asp From these I concluded that the initial draw speed via a cached bitmap was sufficient for my data update rate, and the exposure redraw rate was also excellent. ... I created a simple static frame as the container for the GDI+ plot and timed the code. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Aaarrrggghhh -- that ugly flicker!
    ... meant was it is often better just to draw straight to the window. ... This method is a little slow, because the offscreen memory-DC is created ... Double-buffering will also be twice as slow as it needs to be. ...
    (microsoft.public.vb.general.discussion)
  • Re: Aaarrrggghhh -- that ugly flicker!
    ... meant was it is often better just to draw straight to the window. ... This method is a little slow, because the offscreen memory-DC is created ... Double-buffering will also be twice as slow as it needs to be. ...
    (microsoft.public.vb.winapi)
  • Re: image is not redrawed sometimes when I bring my window to fore
    ... it is erroneous to draw directly on the dialog except in extremely rare and exotic ... In addition, any attempt to paint in some other window is erroneous, and more to the ... you download Microsoft SDK, then look at DirectShow samples, you would see ... HWND hWnd; ...
    (microsoft.public.vc.mfc)
  • Re: Exception (Access Violation) within MFC code
    ... square shape on the current window when i click a toolbar button. ... describe to you anything else you need to know about it, i just dont want to ... a handle to draw this shape when running the updatewindow function. ... Joshua Weir ...
    (microsoft.public.vc.mfc)