Skip to content

Instantly share code, notes, and snippets.

View bg1bgst333's full-sized avatar
😐

B.G bg1bgst333

😐
View GitHub Profile
@bg1bgst333
bg1bgst333 / WM_GETMINMAXINFO.cpp
Created February 5, 2026 05:28
WM_GETMINMAXINFO
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <tchar.h> // TCHAR型
// 関数のプロトタイプ宣言
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // ウィンドウメッセージに対して独自の処理をするように定義したコールバック関数WindowProc.
// _tWinMain関数の定義
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nShowCmd){
@bg1bgst333
bg1bgst333 / MainWindow.cpp
Created February 4, 2026 10:03
CWindowListView
// ヘッダのインクルード
// 既定のヘッダ
#include <windows.h> // 標準WindowsAPI
#include <stdio.h> // C標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダ
#include "MainWindow.h" // CMainWindow
#include "resource.h"
// ウィンドウクラス登録関数RegisterClass.
@bg1bgst333
bg1bgst333 / ListView_GetCheckState.cpp
Created February 4, 2026 02:01
ListView_GetCheckState
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / ListView_GetItemCount.cpp
Created February 3, 2026 01:09
ListView_GetItemCount
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / HandlerConditions.h
Created February 2, 2026 09:51
CWindow::AddCommandHandler_nID_nCode_w_handler
// 二重インクルード防止
#ifndef __HANDLER_CONDITIONS_H__
#define __HANDLER_CONDITIONS_H__
// ヘッダのインクルード
// 既定のヘッダ
#include <tchar.h> // TCHAR型
#include <windows.h> // 標準WindowsAPI
// 独自のヘッダ
#include "Window.h" // CWindow
@bg1bgst333
bg1bgst333 / ListView_SetCheckState.cpp
Created February 2, 2026 02:15
ListView_SetCheckState
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / LV_SELVS.cpp
Created February 1, 2026 04:26
ListView_SetExtendedListViewStyle
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / LV_GELVS.cpp
Created January 31, 2026 02:37
ListView_GetExtendedListViewStyle
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / NM_KILLFOCUS.cpp
Created January 30, 2026 11:36
NM_KILLFOCUS
// ヘッダファイルのインクルード
// 既定のヘッダファイル
#include <windows.h> // 標準WindowsAPI
#include <windowsx.h> // マクロ
#include <tchar.h> // TCHAR型
#include <stdio.h> // 標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダファイル
#include "resource.h" // リソースID
@bg1bgst333
bg1bgst333 / MainWindow.cpp
Created January 30, 2026 01:54
CWindow::OnCbnSelChange
// ヘッダのインクルード
// 既定のヘッダ
#include <windows.h> // 標準WindowsAPI
#include <stdio.h> // C標準入出力
#include <commctrl.h> // コモンコントロール
// 独自のヘッダ
#include "MainWindow.h" // CMainWindow
#include "FileDialog.h" // CFileDialog
#include "CustomEdit.h" // CCustomEdit
//#include "EncodingComboBox.h" // CEncodingComboBox