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.
|
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: fopendlg.cpp
//
//--------------------------------------------------------------------------
#include "pch.h"
#pragma hdrstop
#include "resource.h"
#include "fopendlg.h"
#include "termserv.h"
INT_PTR CALLBACK OpenFilesWarningProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam ) { switch(uMsg) { case WM_INITDIALOG: SendDlgItemMessage(hDlg, IDC_DLGTYPEICON, STM_SETICON, (WPARAM)LoadIcon(NULL, IDI_WARNING), 0L); return TRUE;
case WM_COMMAND: switch (LOWORD(wParam)) { case IDOK: case IDCANCEL: EndDialog(hDlg, LOWORD(wParam)); return TRUE; } break;
default: break; } return FALSE; }
int OpenFilesWarningDialog( HWND hwndParent ) { UINT idDlgTemplate = IDD_OPEN_FILES_WARNING; if (S_OK == TS_MultipleSessions()) { idDlgTemplate = IDD_OPEN_FILES_WARNING_MULTIUSER; } return (int)DialogBox(g_hInstance, MAKEINTRESOURCE(idDlgTemplate), hwndParent, OpenFilesWarningProc); }
|