source: trunk/Utilities/MonitorInformation/MonitorInformation.cpp

Last change on this file was 361, checked in by roman, 9 years ago

VS2012 update and extended printout with EnumDisplayMonitors? data

File size: 842 bytes
RevLine 
[288]1////////////////////////////////////////////////////////////
[361]2// Copyright (C) Alax.Info, 2006-2015
3// http://alax.info
4//
5// A permission to use the source code is granted as long as reference to
6// source website http://alax.info is retained.
7//
8// Created by Roman Ryltsov roman@alax.info
[288]9
10#include "stdafx.h"
11#include <atlframe.h>
12#include <atlctrls.h>
13#include <atldlgs.h>
14#include "resource.h"
15#include "MainDialog.h"
16
17CAppModule _Module;
18
19INT WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR, INT)
20{
21        ATLVERIFY(SUCCEEDED(CoInitialize(NULL)));
22        DefWindowProc(NULL, 0, 0, 0);
23        AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls
24        ATLVERIFY(SUCCEEDED(_Module.Init(NULL, hInstance)));
25        CMainDialog Dialog;
26        Dialog.DoModal();
27        _Module.Term();
28        CoUninitialize();
29        return 0;
30}
Note: See TracBrowser for help on using the repository browser.