-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (25 loc) · 701 Bytes
/
main.cpp
File metadata and controls
32 lines (25 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <windows.h>
#include <string>
#include <vector>
#include <memory>
#include <functional>
#include <atlbase.h>
#include <d2d1.h>
#include <dwrite.h>
#undef min
#undef max
#include <algorithm>
#pragma comment(lib,"dwrite.lib")
#pragma comment(lib,"d2d1.lib")
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#pragma warning(disable:4100)
#include "colorpick.hpp"
float COLORPICK::ScaleDPI = 96.0f;
COLORPICK prx;
int __stdcall WinMain(HINSTANCE h, HINSTANCE, LPSTR, int)
{
D2D1_COLOR_F c1 = {};// = { 1.0f,0,0,1.0f };
prx.Show(0, c1);
}