スマホに親しんだ若者がWindows 10で現代的な C++/Win32 のプログラムを作る場合に役立てばいいなと思って作りました。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { display: block; } | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { display: block; } | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
'''参考文献に記載されているDelphiのコードの移植版 | |
Notes | |
----- | |
参考文献: 多数の点を球面上に一様分布させるソフトウェアGSS Generator | |
https://www.jstage.jst.go.jp/article/geoinformatics/12/1/12_1_3/_article/-char/ja/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2k-imm32-candinfo.cpp | |
C_ASSERT(sizeof(CANDIDATELIST) == 28); | |
#define ROUNDUP4(n) (((n) + 3) & ~3) /* DWORD alignment */ | |
#define CLIENTIMC_WIDE 0x1 | |
/* dwType for NtUserQueryInputContext */ | |
typedef enum _QUERY_INPUT_CONTEXT | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <string> | |
// クリップボードにテキストをコピーする | |
BOOL CopyTextToClipboard(const std::string& text) | |
{ | |
if (!OpenClipboard(hwnd)) | |
return FALSE; | |
BOOL bOK = FALSE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ポップアップメニューを表示 | |
INT ShowPopupMenu(HWND hwnd, INT iSubMenu) | |
{ | |
// CreatePopupMenu/AppendMenuかLoadMenuでメニューを作成 | |
HMENU hMenu = ::LoadMenu(m_hInst, MAKEINTRESOURCE(IDR_POPUPMENU)); | |
HMENU hSubMenu = ::GetSubMenu(hMenu, iSubMenu); | |
::SetForegroundWindow(hwnd); | |
POINT pt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RS-232C通信設定 | |
bool VskWin32File::set_com_params(VskString params) | |
{ | |
// 空白を削除し、大文字にする | |
auto str = params; | |
mstr_replace_all(str, " ", ""); | |
mstr_replace_all(str, "\t", ""); | |
vsk_upper(str); | |
// COMの設定を取得する |
OlderNewer