[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

AnimateWindow

Posted on 2003-03-31
3
Medium Priority
?
309 Views
Last Modified: 2013-11-20
Hello experts,

How do I use the AnimateWindow function from CWnd? MSDN says, include windows.h and the import lib is user32.lib. What do I need to put in the header of the file to be able to use this function?

Thanks, =)
0
Comment
Question by:n_fortynine
  • 2
3 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 8237362
See the article "Using the SDK Headers":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/using_the_sdk_headers.asp

AnimateWindow requirements are:

Windows NT/2000 or later: Requires Windows 2000 or later.
Windows 95/98/Me: Requires Windows 98 or later

According to the table from this article, you need to add the following definition:

#define _WIN32_WINNT 0x0410
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 200 total points
ID: 8237417
Correction:

#define _WIN32_WINNT 0x0500       // for 2000
#define _WIN32_WINDOWS 0x0410     // for 98
0
 
LVL 4

Author Comment

by:n_fortynine
ID: 8237896
I tried that and it didn't work, but thanks anyway Alex, and I'm giving you the points =). I found some code on CodeGuru that made it work.
http://www.codeguru.com/mfc/comments/36529.shtml
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question