mfc >> Animated bitmap or avi in top right of application - how to do?

by Gene Sewell » Thu, 27 Nov 2003 03:50:58 GMT

Hi,

I want to emulate Internet Explorer's top right animated bitmap (or avi
file).

I want to start the animation to show my application is busy, and stop
it when it's idle - just as IE behaves.

Looking at IE, their animated bitmap is really at the far right of the
top main menu bar.

I've searched a lot, and found no hints on how to do this, which is
surprising to me, since I would think many folks would want to copy IE's
behavior.

Anyone have any hints on how to get this behavior?

thanks,

Gene


mfc >> Animated bitmap or avi in top right of application - how to do?

by Ajay Kalra » Thu, 27 Nov 2003 03:54:30 GMT


Take a look at example MFCIE in MSDN. It shows how to put that animation in a rebar
similar to IE using MFC. In addition, there are examples at www.codeguru.com if you want
to do it differently.

--
Ajay Kalra [MVP - VC++]
XXXX@XXXXX.COM




| Hi,
|
| I want to emulate Internet Explorer's top right animated bitmap (or avi
| file).
|
| I want to start the animation to show my application is busy, and stop
| it when it's idle - just as IE behaves.
|
| Looking at IE, their animated bitmap is really at the far right of the
| top main menu bar.
|
| I've searched a lot, and found no hints on how to do this, which is
| surprising to me, since I would think many folks would want to copy IE's
| behavior.
|
| Anyone have any hints on how to get this behavior?
|
| thanks,
|
| Gene




mfc >> Animated bitmap or avi in top right of application - how to do?

by Gene Sewell » Tue, 02 Dec 2003 01:24:56 GMT

In article <OT$ XXXX@XXXXX.COM >, XXXX@XXXXX.COM
says...
Oh thank you!

I really had tried looking very hard for this, and you rang the bell!

Thanks!


Similar Threads

1. Problem with refreshing animated bitmap

Hello,

I've got quite a problem with which I've been strugling whole day and
can't pass through it. I've got a problem with OnPaint which doesn't
work as it should be ( after trying countless samples from @groups,
and various sites. Here's the code:

void My_CMainWnd::OnPaint ()
{
	CPaintDC dc(this);
	dcMem->CreateCompatibleDC(&dc);
	CBitmap *pOldBitmap = new CBitmap;
	pOldBitmap = dcMem->SelectObject(myEng->TloBitmap);
	CRect rcClient;
	GetClientRect(&rcClient);
	myEng->BBitmap->DrawTransparent(dcMem,myEng->Balls->BCoordinates-
>x,myEng->Balls->BCoordinates->y,RGB(255,0,255));
	dc.BitBlt(0,0,rcClient.Width(),rcClient.Height(),dcMem,0,0,SRCCOPY);
	dcMem->SelectObject(pOldBitmap);
}

2. how to convert an AVI Y800 format movie to seria of bitmap 24 file

3. Move tab to top right

I want to create a tab control and I want tabs on the top right side.
current TabAlignment only provides Top, Bottom, Left and Right.  Please
help. Thanks

4. minimize, maximize buttons on the top,right hand corner of my form - CSharp/C#

5. Close on system menu (the "X" in the top right side of window)

What function is called in response to a click on "Close" on system menu (the 
"X" in the top right side of window)?

6. top-right pointing arrow cursor? - CSharp/C#

7. Am I doing it right?

Hi All

Can someone tell me if I am doing this correctly, or can possibly suggest better ways, if I'm not doing this correctly.

I have a windows application that I am writing,So I have a UI and I have another class that handles the inserts,updates etc to a specific table/s in  the database,(I actually have multiple classes that do more or less the same thing, but for different sets of tables in the database) Then in my UI code I have a dataset that I fill by calling a method from one of my classes, that returns a datatable, and I add that table to my dataset in the UI. When I want to add/delete/update data, I do so in the UI's dataset and send the specific datatable in the ui's dataset to the class to update the database. Am I doing this correctly?

I'm sure there is probably a way to cut out the multiple classes for each table or set of tables, like create a base class? but how do I do that? Anyone got any links I can go to for this - if it is a better solution? I did this "multiple classes for tables/sets of tables" because of the layout of the tables, each table of course has different column names, and data types, and there are times when I need to reference a specific column etc.

But overall, am I approaching this correctly? Any insight into streamlining this is greatly appreciated. Thanks alot

Kevin - C# Beginner

8. Doing the Right Thing when designing plugin architectures - CSharp/C#