page1dlg.cpp

来自「《Windows CE 6.0开发者参考》(《Programming Windo」· C++ 代码 · 共 44 行

CPP
44
字号
//======================================================================
// 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 + =
减小字号Ctrl + -
显示快捷键?