Link to home
Start Free TrialLog in
Avatar of n_fortynine
n_fortynine

asked on

AnimateWindow

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, =)
Avatar of AlexFM
AlexFM

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
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of n_fortynine

ASKER

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