?
Solved

AnimateWindow

Posted on 2003-03-31
3
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

743 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