Skip to content

Commit

Permalink
画像追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjinote committed Sep 12, 2022
1 parent 19b1dc1 commit dfe7985
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 273 deletions.
6 changes: 3 additions & 3 deletions GhibliButton/GhibliButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ bool CopyImage(const LPPICTURE pPic)
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HWND hButton[11];
static LPCWSTR lpszButtonName[] = { L"すばらしい!", L"ほう..", L"またねっ", L"OK", L"ハハハハッ", L"いいね!", L"ありがとう①", L"フフフ", L"なるほど", L"ほほぅ", L"ありがとう②", L"ゴォォォ・・・",L"やなヤツやなヤツ",L"♩♪♩♩♫♪",L"",L"いいよ",L"おっと",L"ごめんね",L"またね"};
static INT nImageID[] = { IDB_BITMAP7, IDB_BITMAP8, IDB_BITMAP9, IDB_BITMAP6, IDB_BITMAP2, IDB_BITMAP3, IDB_BITMAP5, IDB_BITMAP4, IDB_BITMAP11, IDB_BITMAP1, IDB_BITMAP10, IDB_BITMAP12, IDB_BITMAP13, IDB_BITMAP14, IDB_BITMAP15, IDB_BITMAP16, IDB_BITMAP17, IDB_BITMAP18, IDB_BITMAP19 };
static LPCWSTR lpszButtonName[] = { L"すばらしい!", L"ほう..", L"またねっ", L"OK", L"ハハハハッ", L"いいね!", L"ありがとう①", L"フフフ", L"なるほど", L"ほほぅ", L"ありがとう②", L"ゴォォォ・・・",L"やなヤツやなヤツ",L"♩♪♩♩♫♪",L"",L"いいよ",L"おっと",L"ごめんね",L"またね",L"書いてね" };
static INT nImageID[] = { IDB_BITMAP7, IDB_BITMAP8, IDB_BITMAP9, IDB_BITMAP6, IDB_BITMAP2, IDB_BITMAP3, IDB_BITMAP5, IDB_BITMAP4, IDB_BITMAP11, IDB_BITMAP1, IDB_BITMAP10, IDB_BITMAP12, IDB_BITMAP13, IDB_BITMAP14, IDB_BITMAP15, IDB_BITMAP16, IDB_BITMAP17, IDB_BITMAP18, IDB_BITMAP19, IDB_BITMAP20 };
switch (message)
{
case WM_CREATE:
for (int i = 0; i < 18; i++) {
for (int i = 0; i < 20; i++) {
hButton[i] = CreateWindow(L"BUTTON", lpszButtonName[i], WS_VISIBLE | WS_CHILD, 10 + 110 * i, 10, 100, 32, hWnd, (HMENU)(1000 + nImageID[i]), ((LPCREATESTRUCT)lParam)->hInstance, 0);
}
LoadPictureResource(MAKEINTRESOURCE(nImageID[0]), TEXT("JPG"));
Expand Down
Binary file modified GhibliButton/GhibliButton.rc
Binary file not shown.
3 changes: 2 additions & 1 deletion GhibliButton/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define IDB_BITMAP17 156
#define IDB_BITMAP18 157
#define IDB_BITMAP19 158
#define IDB_BITMAP20 159

#define IDC_STATIC -1

Expand All @@ -39,7 +40,7 @@
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 159
#define _APS_NEXT_RESOURCE_VALUE 160
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
Expand Down
269 changes: 0 additions & 269 deletions enc_temp_folder/3541f0cb99e2b3cc5f7c3e58522cf1e/GhibliButton.cpp

This file was deleted.

Binary file added image/FbuunP4VQAEFR6q.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dfe7985

Please sign in to comment.