亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? palfade.c

?? C:Documents and SettingsAdministrator桌面VC++多媒體特效制作百例CHAR05PALFADE
?? C
字號:
//****************************************************************************
// File: palfade.c
//
// Purpose:    This demonstrates how to use the AnimatePalette function to fade 
//             a bitmap to black. This sample also demonstrates how to utilize 
//             the DIBAPI32.DLL library that can be built by the WINCAP32 sample 
//             shipped with the Microsoft Win32 Software Development Kit. In order 
//             to perform palette animation, the sample will create a logical palette 
//             for a device-independent bitmap (DIB) with the PC_RESERVED flag set for
//             each palette entry. PALFADE will load, display, and animate both Windows
//             3.0 style and OS/2 style DIB's. 
//
//
// Functions:
//
//    WinMain()         - calls initialization function, processes message loop
//    InitApplication() - initializes window data and registers window
//    InitInstance()    - saves instance handle and creates main window
//    WndProc()         - processes messages
//    About()           - processes messages for "About" dialog box
//
// Development Team:
//         Greg Binkerd - Windows Developer Support
//
// Written by Microsoft Windows Developer Support
// Copyright (c) 1995 Microsoft Corporation. All rights reserved.
//****************************************************************************

#include <windows.h>     // required for all Windows applications
#include "resource.h"    // specific to this program
#include "palfade.h"    // specific to this program
#include "fade.h"    // specific to this program
#include "resource.h"    // specific to this program

HINSTANCE hInst;      // current instance 

char szAppName[] = "PalFade";  // The name of this application
char szTitle[]   = "Palette Animation Sample"; // The title bar text


/****************************************************************************

    FUNCTION: WinMain(HINSTANCE, HINSTANCE, LPSTR, int)

    PURPOSE: calls initialization function, processes message loop

    COMMENTS:

        Windows recognizes this function by name as the initial entry point
        for the program.  This function calls the application initialization
        routine, if no other instance of the program is running, and always
        calls the instance initialization routine.  It then executes a message
        retrieval and dispatch loop that is the top-level control structure
        for the remainder of execution.  The loop is terminated when a WM_QUIT
        message is received, at which time this function exits the application
        instance by returning the value passed by PostQuitMessage().

        If this function must abort before entering the message loop, it
        returns the conventional value NULL.

****************************************************************************/
int APIENTRY WinMain(
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow)
{
    MSG msg;
    BOOL bDone = FALSE;

    if (!hPrevInstance)     // Other instances of app running?
        if (!InitApplication(hInstance))  // Initialize shared things
            return (FALSE);     // Exits if unable to initialize

    /* Perform initializations that apply to a specific instance */
    if (!InitInstance(hInstance, nCmdShow)) 
        return (FALSE);


    while (GetMessage(&msg, // message structure
           NULL,   // handle of window receiving the message
           0,      // lowest message to examine
           0))     // highest message to examine
            {
            TranslateMessage(&msg);// Translates virtual key codes
            DispatchMessage(&msg); // Dispatches message to window
            }
    
   lpCmdLine; // This will prevent 'unused formal parameter' warnings
    
    return (msg.wParam); // Returns the value from PostQuitMessage
}


/****************************************************************************

    FUNCTION: InitApplication(HINSTANCE)

    PURPOSE: Initializes window data and registers window class

    COMMENTS:

        This function is called at initialization time only if no other
        instances of the application are running.  This function performs
        initialization tasks that can be done once for any number of running
        instances.

        In this case, we initialize a window class by filling out a data
        structure of type WNDCLASS and calling the Windows RegisterClass()
        function.  Since all instances of this application use the same window
        class, we only need to do this when the first instance is initialized.


****************************************************************************/

BOOL InitApplication(HINSTANCE hInstance)
{
    WNDCLASS  wc;

    // Fill in window class structure with parameters that describe the
    // main window.

    ZeroMemory(&wc, sizeof(WNDCLASS));
    
    wc.style         = 0;           
    wc.lpfnWndProc   = (WNDPROC)WndProc;   // Window Procedure
    wc.hInstance     = hInstance;          // Owner of this class
    wc.hIcon         = LoadIcon (hInstance, szAppName); // Icon name from .RC
    wc.hCursor       = LoadCursor(NULL, IDC_ARROW);// Cursor
    wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);// Default color
    wc.lpszMenuName  = "PALFADEMENU";     // Menu name from .RC
    wc.lpszClassName = szAppName;          // Name to register as

    // Register the window class and return success/failure code.
    return (RegisterClass(&wc));
}


/****************************************************************************

    FUNCTION:  InitInstance(HINSTANCE, int)

    PURPOSE:  Saves instance handle and creates main window

    COMMENTS:

        This function is called at initialization time for every instance of
        this application.  This function performs initialization tasks that
        cannot be shared by multiple instances.

        In this case, we save the instance handle in a static variable and
        create and display the main program window.

****************************************************************************/

BOOL InitInstance(
    HINSTANCE      hInstance,
    int         nCmdShow)
{
    HWND hWnd;
    // Save the instance handle in static variable, which will be used in
    // many subsequence calls from this application to Windows.

    hInst = hInstance; // Store instance handle in our global variable

    // Create a main window for this application instance.

    hWnd = CreateWindow(
        szAppName,       // See RegisterClass() call.
        szTitle,         // Text for window title bar.
        WS_OVERLAPPEDWINDOW,// Window style.
        CW_USEDEFAULT, 0,
        CW_USEDEFAULT, 0, 
        NULL,        // Overlapped windows have no parent.
        NULL,        // Use the window class menu.
        hInstance,       // This instance owns this window.
        NULL         // We don't use any data in our WM_CREATE
    );

    // If window could not be created, return "failure"
    if (!hWnd) 
        return (FALSE);
    

    // Make the window visible; update its client area; and return "success"
    ShowWindow(hWnd, nCmdShow); // Show the window
    UpdateWindow(hWnd);     // Sends WM_PAINT message

    return (TRUE);          // We succeeded...

}                 

/****************************************************************************

    FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)

    PURPOSE:  Processes messages

    MESSAGES:

    WM_COMMAND    - application menu (About dialog box)
    WM_DESTROY    - destroy window

    COMMENTS:

    To process the IDM_ABOUT message, call MakeProcInstance() to get the
    current instance address of the About() function.  Then call Dialog
    box which will create the box according to the information in your
    generic.rc file and turn control over to the About() function.  When
    it returns, free the intance address.

****************************************************************************/

LRESULT CALLBACK WndProc(
        HWND hWnd,         // window handle
        UINT message,      // type of message
        WPARAM uParam,     // additional information
        LPARAM lParam)     // additional information
{
    int wmId, wmEvent;

    switch (message) 
    {
    case WM_COMMAND:       /* message: command from application menu */
        wmId    = LOWORD(uParam);
        wmEvent = HIWORD(uParam);

        switch (wmId) 
           {
           case ID_FADE:
		      {
              FadeBitmap(hWnd);  // load and fade a bitmap
              break;
			  }

           case IDM_ABOUT:
              DialogBox(hInst,       // current instance
                "AboutBox",    // dlg resource to use
                hWnd,          // parent handle
                (DLGPROC)About);   // About() instance address
              break;
    	
           case IDM_EXIT:
              DestroyWindow (hWnd);
              break;

           default:
              return (DefWindowProc(hWnd, message, uParam, lParam));
           }
           break;

    case WM_DESTROY:  // message: window being destroyed
        PostQuitMessage(0);
        break;
    
    default:      // Passes it on if unproccessed
        return (DefWindowProc(hWnd, message, uParam, lParam));
    }
    return (0);
}


/****************************************************************************

    FUNCTION: About(HWND, UINT, WPARAM, LPARAM)

    PURPOSE:  Processes messages for "About" dialog box

    MESSAGES:

    WM_INITDIALOG - initialize dialog box
    WM_COMMAND    - Input received

    COMMENTS:

    Display version information from the version section of the
    application resource.

    Wait for user to click on "Ok" button, then close the dialog box.

****************************************************************************/

LRESULT CALLBACK About(
        HWND hDlg,       // window handle of the dialog box
        UINT message,    // type of message
        WPARAM uParam,       // message-specific information
        LPARAM lParam)
{

    switch (message) {
    case WM_INITDIALOG:  // message: initialize dialog box
        return (TRUE);

    case WM_COMMAND:              // message: received a command
        if ((LOWORD(uParam) == IDOK) || (LOWORD(uParam) == IDCANCEL)) { 
            EndDialog(hDlg, TRUE);    // Exit the dialog
            return (TRUE);
        }
        break;
    }
    
    UNREFERENCED_PARAMETER(lParam); // Prevent 'unused formal parameter' warnings

    return (FALSE); // Didn't process the message
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内一区二区在线| 欧美亚洲动漫另类| 久久精品人人做人人综合| 日韩精品一二三区| 久久综合av免费| 成人av网站在线观看免费| 亚洲激情网站免费观看| 91久久线看在观草草青青| 肉色丝袜一区二区| 久久精品男人天堂av| 色av综合在线| 国产精品一区二区在线播放| 中文字幕亚洲在| 欧美一级在线观看| 色综合天天做天天爱| 洋洋成人永久网站入口| 日韩免费电影一区| eeuss鲁片一区二区三区 | 日韩视频不卡中文| av动漫一区二区| 久久亚洲精品国产精品紫薇| 久久久精品日韩欧美| 福利91精品一区二区三区| 亚洲日本va午夜在线电影| 日韩欧美一区在线观看| av不卡在线播放| www.欧美色图| 国产成人精品免费视频网站| 精品一区二区在线视频| 日韩精品亚洲专区| 日本欧美在线观看| 天天操天天色综合| 精品av综合导航| 精品少妇一区二区三区在线视频| 欧美三级日韩在线| 色噜噜夜夜夜综合网| 色综合久久88色综合天天6| 国产99久久久国产精品| 国产精品456露脸| 国产精品一二二区| 成a人片国产精品| 99久久久国产精品免费蜜臀| 色综合欧美在线视频区| 国产一区二区h| aa级大片欧美| 欧美蜜桃一区二区三区| 久久久精品影视| 一区二区三区不卡视频| 蜜桃av一区二区| 成人免费av网站| 91久久精品一区二区三| 成人av免费观看| 在线播放一区二区三区| 欧美国产综合一区二区| 亚洲高清久久久| 国产精品一区专区| 欧美丰满嫩嫩电影| 国产精品久久一卡二卡| 日韩1区2区日韩1区2区| proumb性欧美在线观看| 欧美一区二区三区日韩视频| 亚洲欧美日韩在线| 国产一区二区h| 精品美女被调教视频大全网站| 日韩毛片精品高清免费| 国产精品一色哟哟哟| 欧美精品18+| 亚洲va国产天堂va久久en| 成人在线综合网站| 欧美tk—视频vk| 美女免费视频一区| 日韩精品一区二区三区四区视频| 亚洲激情综合网| 欧美午夜精品久久久久久孕妇| 亚洲欧美日本韩国| 99久久精品费精品国产一区二区| 国产亚洲欧美日韩在线一区| 美女在线观看视频一区二区| 777欧美精品| 青青草伊人久久| 精品电影一区二区三区| 国产原创一区二区| 岛国一区二区三区| 中文字幕一区在线| 91成人免费电影| 婷婷成人综合网| 国产日本一区二区| 成人自拍视频在线观看| 亚洲综合网站在线观看| 欧美大黄免费观看| www.欧美日韩国产在线| 日产欧产美韩系列久久99| 久久天天做天天爱综合色| 91亚洲精品乱码久久久久久蜜桃| 午夜精品福利在线| 国产欧美日韩麻豆91| 精品视频在线免费观看| 国产91精品久久久久久久网曝门| 久久九九国产精品| 一本大道久久a久久精二百| 日韩国产欧美在线观看| 自拍偷在线精品自拍偷无码专区 | 欧美午夜在线一二页| 国产精品婷婷午夜在线观看| 91丨九色丨尤物| 国产成人精品亚洲午夜麻豆| 亚洲精品日韩专区silk| 中文字幕成人av| 精品美女一区二区| 在线成人av网站| 欧美日韩国产一二三| 在线观看日韩av先锋影音电影院| 国产精品一区二区视频| 韩国理伦片一区二区三区在线播放| 亚洲精品国久久99热| 亚洲少妇中出一区| 日韩伦理av电影| 欧美国产精品一区二区三区| 欧美不卡一区二区三区四区| 欧美丰满美乳xxx高潮www| 欧美自拍偷拍一区| 欧美日韩一级片在线观看| 欧美性大战xxxxx久久久| 欧美三片在线视频观看| 欧美日韩国产小视频在线观看| 在线观看视频一区二区| 欧美精品亚洲一区二区在线播放| 欧美一区二区三区免费在线看 | 日本成人中文字幕在线视频| 日本不卡不码高清免费观看| 久久99精品久久只有精品| 国产麻豆视频一区| av网站免费线看精品| 欧美老肥妇做.爰bbww视频| 91精品国产91综合久久蜜臀| 久久精品视频网| 伊人夜夜躁av伊人久久| 久久国内精品视频| 99久久久国产精品免费蜜臀| 欧美一区二视频| 一区二区三区在线观看网站| 蓝色福利精品导航| 91在线视频免费91| 欧美tickling网站挠脚心| 亚洲黄色性网站| 99久免费精品视频在线观看| 欧美视频自拍偷拍| 亚洲免费在线电影| 国产精品一区二区三区四区| 正在播放一区二区| 亚洲午夜成aⅴ人片| 99re在线精品| 国产精品妹子av| av一区二区三区| 欧美激情一二三区| 国产成人激情av| ww亚洲ww在线观看国产| 麻豆91精品视频| 日韩视频在线你懂得| 久久精品国产精品亚洲精品 | 91视视频在线直接观看在线看网页在线看| 欧美高清一级片在线| 日韩av网站免费在线| 日韩一区二区在线播放| 奇米色777欧美一区二区| 欧美一区二区三区在线观看| 日韩高清在线不卡| 欧美成人a视频| av不卡在线播放| 天天综合天天综合色| 欧美图片一区二区三区| 日本最新不卡在线| 久久精品视频在线看| 91高清在线观看| 久久精品国产久精国产爱| 国产精品美女久久久久久2018| zzijzzij亚洲日本少妇熟睡| 亚洲电影你懂得| 精品国产一二三| 色综合天天综合| 麻豆精品新av中文字幕| 亚洲视频在线一区二区| 3atv一区二区三区| 色综合久久综合网97色综合| 日本成人在线网站| 国产精品久久午夜| 欧美日韩国产高清一区| 成人综合在线视频| 日本aⅴ免费视频一区二区三区| 中文一区在线播放| 欧美一区二区视频在线观看2022 | 亚洲福利视频一区| 国产欧美久久久精品影院| 精品欧美乱码久久久久久| 色狠狠色狠狠综合| 国产福利一区二区三区视频| 日本一区二区在线不卡| 白白色亚洲国产精品| 日韩av一区二区在线影视| 一区二区高清免费观看影视大全|