Re: "animation" using small bmp's

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Mechi Fendel" <mechif@xxxxxxxxxxxx> wrote in message
news:eFy4Wpf4GHA.3840@xxxxxxxxxxxxxxxxxxxxxxx
Hi!
I'm searching for a way to have a blinking light (2 small bmp's - one off
and one on) or a police siren (3-4 bmp's - should be displayed one after
another) on my screen. This will have to be done in the background
(separate thread), since the user will be accessing other parts of the
dialog.


Use a picture control and set a new bitmap every time your timer ticks.
It's easier to use a picture control than blt the bitmap yourself.

-- David


.



Relevant Pages

  • Re: LoadImage
    ... > The first step is to load the bitmap using LoadImage. ... > picture control, and if it is invisible, trying to erad the pixel with ... Dim hDC As Long, hOldBMP As Long ... GetDIBitsis a very slow way of accessing the image data from a DC, it's fine for the odd pixel read however if you want to read ...
    (microsoft.public.vb.general.discussion)
  • Re: picture control-frame type?
    ... That because the picture control as actually a 7 control in one. ... change the type from Bitmap to frame you changed it's type from a bitmap ... displayer to a simple frame. ... > normal LoadBitmap and SetBitmap functions dont work? ...
    (microsoft.public.vc.mfc)
  • size of Picture Control
    ... resource, set the Picture Control to Type ... Bitmap and selected in the Image field the bitmap resource. ... I know that dialogs are in dialog units, and that the picture resizes with ...
    (microsoft.public.vc.mfc)
  • [PATCH] x86: Optimize find_next_(zero_)bit for small constant-size bitmaps
    ... This moves an optimization for searching constant-sized small ... this patch avoids a call for a 1-bit bitmap. ... * @addr: The address to base the search on ...
    (Linux-Kernel)
  • Putting Bitmap into a Dialog Picture Control
    ... I am trying to use a Picture Control (from the dialog editor) to display ... work well but no bitmap is drawn. ...
    (microsoft.public.vc.mfc)