// FrameMetrics.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text enum { NCCAPTION, NCBORDERS, NCMENUBAR, NCSCROLLBARS, NCCLOSEBUTTON, NCMAXBUTTON, NCMINBUTTON, NCHELPBUTTON, NCSYSICON, _cNCXXX, }; BOOL _rgf[_cNCXXX] = {FALSE}; HBRUSH _rghbr[_cNCXXX] = {0}; COLORREF _rgrgb[_cNCXXX] = { RGB(255,0,255), RGB(0,255,255), RGB(255,255,0), RGB(0,0,255), RGB(0,255,255), RGB(0,255,255), RGB(0,255,255), RGB(0,255,255), RGB(0,255,255), }; // Foward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. MSG msg; HACCEL hAccelTable; // Initialize global strings LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadString(hInstance, IDC_FRAMEMETRICS, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Perform application initialization: if (!InitInstance (hInstance, nCmdShow)) { return FALSE; } for( int i=0; i