⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page1dlg.cpp

📁 《Windows CE 6.0开发者参考》(《Programming Windows Embedded CE 6.0 Developer Reference》)第四版书中的源代码
💻 CPP
字号:
//======================================================================
// Page1DlgProc - Button dialog box window code
//
// Written for the book Programming Windows CE
// Copyright (C) 2007 Douglas Boling
//======================================================================
#include <windows.h>                 // For all that Windows stuff
#include <commctrl.h>                // Common Control includes
#include <prsht.h>                   // Property sheet includes
#include "DlgDemo.h"                 // Program-specific stuff

// Identification strings for various WM_NOTIFY notifications
NOTELABELS nlPage1[] = {{TEXT ("MCN_SELCHANGE   "), MCN_SELCHANGE},
                        {TEXT ("MCN_GETDAYSTATE "), MCN_GETDAYSTATE},
                        {TEXT ("MCN_SELECT      "), MCN_SELECT},
                        {TEXT ("MCN_SELECTNONE  "), MCN_SELECTNONE},
};
//======================================================================
// Page1DlgProc - Page1 dialog box procedure
//
BOOL CALLBACK Page1DlgProc (HWND hWnd, UINT wMsg, WPARAM wParam,
                          LPARAM lParam) {
    switch (wMsg) {

        case WM_INITDIALOG:
            return TRUE;
        //
        // Reflect WM_COMMAND messages to main window.
        //
        case WM_COMMAND:
            PrintCmdMessage (wParam, lParam, NULL, 0);
            return TRUE;

        //
        // Reflect notify message.
        //
        case WM_NOTIFY:
            PrintNotMessage (lParam, nlPage1, sizeof (nlPage1));
            return FALSE;  // Return false to force default processing.
    }
    return FALSE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -