source: trunk/Utilities/MonitorInformation/MonitorInformation.cpp @ 288

Last change on this file since 288 was 288, checked in by roman, 8 years ago
File size: 632 bytes
Line 
1////////////////////////////////////////////////////////////
2// MonitorInformation.cpp -
3
4#include "stdafx.h"
5#include <atlframe.h>
6#include <atlctrls.h>
7#include <atldlgs.h>
8#include "resource.h"
9#include "MainDialog.h"
10
11CAppModule _Module;
12
13INT WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR, INT)
14{
15        ATLVERIFY(SUCCEEDED(CoInitialize(NULL)));
16        DefWindowProc(NULL, 0, 0, 0);
17        AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls
18        ATLVERIFY(SUCCEEDED(_Module.Init(NULL, hInstance)));
19        CMainDialog Dialog;
20        Dialog.DoModal();
21        _Module.Term();
22        CoUninitialize();
23        return 0;
24}
Note: See TracBrowser for help on using the repository browser.