Skip to content

Instantly share code, notes, and snippets.

@egtra
egtra / gdiplus-image-bitblt.cpp
Last active January 3, 2016 19:08
Gdiplus::Bitmapで読み込んだ画像をメモリDC + 互換ビットマップに描画して、BitBltで表示するサンプル。サンプルのために書いたので、いろいろ手抜きしている。
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _WTL_NO_AUTOMATIC_NAMESPACE
#include <windows.h>
#include <gdiplus.h>
#include <atlbase.h>
#include <atlwin.h>
#include <atlapp.h>
/*
CEditWithoutIme.h
zlib License:
Copyright (c) 2014 Egtra
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
/*
CDialogWithThemeFontImpl.h
zlib License:
Copyright (c) 2014-2016 Egtra
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
@egtra
egtra / FileDescriptorTest.cpp
Created September 10, 2014 17:57
CFSTR_FILEDESCRIPTORで実在しないファイルをエクスプローラへドラッグ&ドロップする実験
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define _ATL_NO_AUTOMATIC_NAMESPACE
@egtra
egtra / FileDescriptorTest-MemStream.cpp
Last active August 29, 2015 14:06
CFSTR_FILEDESCRIPTORで実在しないファイルをエクスプローラへドラッグ&ドロップする実験(SHCreateMemStream使用)
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define _ATL_NO_AUTOMATIC_NAMESPACE
@egtra
egtra / FileDescriptorTest-Forms.cpp
Created September 11, 2014 15:34
CFSTR_FILEDESCRIPTORで実在しないファイルをエクスプローラへドラッグ&ドロップする実験 (Windows Forms)
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#include <string.h>
@egtra
egtra / FileDescriptorTest-WPF.cpp
Last active August 29, 2015 14:06
CFSTR_FILEDESCRIPTORで実在しないファイルをエクスプローラへドラッグ&ドロップする実験 (WPF)
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#include <string.h>
@egtra
egtra / FileDescriptorTest-MemStream-Async-FTM.cpp
Last active August 29, 2015 14:06
非同期ドロップ処理フリースレッドマーシャラー + CFSTR_FILEDESCRIPTOR (SHCreateMemStream)
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define _ATL_NO_AUTOMATIC_NAMESPACE
@egtra
egtra / FileDescriptorTest-Forms-Async-FTM.cpp
Last active August 29, 2015 14:06
非同期ドロップ処理フリースレッドマーシャラー + CFSTR_FILEDESCRIPTOR (Windows Forms)
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#include <string.h>