Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.2 KiB

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: dlgbase.cxx
//
// Contents: CDialog base class
//
// History: 19-Oct-94 BruceFo Created.
//
//--------------------------------------------------------------------------
#include "headers.hxx"
#pragma hdrstop
#include "dlgbase.hxx"
//+-------------------------------------------------------------------------
//
// Method: CDialog::_WinDlgProc, static private
//
// Synopsis: Windows Dialog Procedure
//
//--------------------------------------------------------------------------
INT_PTR CALLBACK
CDialog::_WinDlgProc(
IN HWND hwnd,
IN UINT msg,
IN WPARAM wParam,
IN LPARAM lParam
)
{
CDialog *pPropPage = NULL;
if (msg==WM_INITDIALOG)
{
SetWindowLongPtr(hwnd,GWLP_USERDATA,lParam);
}
pPropPage = (CDialog*) GetWindowLongPtr(hwnd,GWLP_USERDATA);
if (pPropPage != NULL)
{
return pPropPage->DlgProc(hwnd,msg,wParam,lParam);
}
else
{
return FALSE;
}
}