AnimateWindows for MFC, mfcanimatewindows
AnimateWindow
This function can have special effects when displaying and hiding windows. There are two types of animation effects: Scroll animation and slide animation.
Function prototype: BOOL AnimateWindow (HWND hWnd, DWORD dwTime, DWORD dwFlags); BOOL AnimateWindow (DWORD dwTime, DWORD dwFlags); parameter: hWnd: Specifies the handle of the window that generates the animation. DwTime: Specifies the animation duration (in microseconds). The standard time for completing an animation is 200 microseconds. DwFags: Specifies the animation type. This parameter can be a combination of one or more of the following labels. Flag Description: AW_SLIDE: Use the slide type. The default value is the scroll animation type. When the AW_CENTER flag is used, this flag is ignored. AW_ACTIVATE: Activation window. Do not use this flag after the AW_HIDE flag is used. AW_BLEND: fade out effect. This flag can be used only when hWnd is a top-level window. AW_HIDE: hides the window. The window is displayed by default. AW_CENTER: If the AW_HIDE flag is used, the window will overlap inward. If the AW_HIDE flag is not used, the window will expand outward. AW_HOR_POSITIVE: the window is displayed from left to right. This flag can be used in rolling and sliding animations. When the AW_CENTER flag is used, the flag is ignored. AW_VER_POSITIVE: the window is displayed from top to bottom. This flag can be used in rolling and sliding animations. When the AW_CENTER flag is used, the flag is ignored. AW_VER_NEGATIVE: the window is displayed from bottom to top. This flag can be used in rolling and sliding animations. When the AW_CENTER flag is used, the flag is ignored. AW_HOR_NEGATIVE: the window is displayed from right to left. This flag can be used in rolling and sliding animations. When the AW_CENTER flag is used, the flag is ignored. Return: If the function succeeds, the returned value is non-zero. If the function fails, the returned value is zero. In the following cases, the function fails: The window uses the window boundary, the window is visible, and the window is hidden, and the window is hidden. To obtain more error information, call the GetLastError function. Remark: you can combine AW_HOR_POSITIVE or AW_HOR_NEGTVE with AW_VER_POSITVE or AW_VER_NEGATIVE to activate a window. You may need to process WM_PRINT or WM_PRINTCLIENT messages in the window and Its subwindow. The dialog box, control, and sharing control processes WM_PRINTCLIENT messages, and WM_PRINT messages are also processed in the default window process. Instance: void CAboutDlg: OnClose () {// fade out effect. AnimateWindow (GetSafeHwnd (), 1000, AW_HIDE | AW_BLEND); CDialog: OnClose ();} from: http://baike.baidu.com/view/1080291.htm?fr=aladdin
Windows Programming and MFC
Windows Programming 5ed, advanced windows 4th... Come on, the computer is interested and time
In fact, it is better to learn java, and c # can also
You don't have to learn mfc. As long as you have the development experience of a platform and a class library, you can access the class.
Learning windows programming or mfc
At the beginning, we should lay a solid foundation for C ++, learn about the API in general, and do not need to learn more deeply. Remember the frequently used API, and then attack the MFC, as long as you have a solid knowledge of C ++, it is actually quite simple to learn. We recommend <a simple introduction to MFC>. After you have read this book, next, we recommend sun Xin's <VC ++ goes deep into xiangjie>. If you have read all of these, and then go back and learn the API, you will find out how simple the two are.