LESSON4:C++:Win32API応用編

上の絵はひらがなの書き順を学習プログラムです。50音のビットマップボタンを押すと音声合成による声と書き順がアニメーションで 示されます。声は3種類ラジオボタンで選ぶことが出来ます。書き順のアニメーションと音声の速さをスライダーで変えることがもできます。 音の大きさを変えることができます。Aquestalk2のボタンを押すと音声合成のソフトウェアの部品を無料で使わせてくれる(株)アクエスト のホームページに飛ぶようになっています。このプログラムの全ソースを下に示しました。まったくC++の良さがないものです。 これはLesson3同様にCのプログラムのようなものです。C++のクラスを使って書き直すと短くてスマートなソースコードになると思います。 こんな力ずくのコードでも、とりあえずこれでも動くんだという例を示すだけでLesson4はおしまいにします。CodeBlocksのプロジェクトファイルを まるごと7-ZIPで圧縮したものをここに用意しましたのでご自分で改良してみてください。

[Win32 API応用編:KanaChan for Windows by WIZSYS NETWORKS]

main.cpp

// Project_p01
//
#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include <memory.h>
#include <stdlib.h>
#include<shellapi.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "resource.h"
#include "AquesTalk2Da.h"
#define TIMER_ID   1

extern "C" int WINAPI SetMasterVolume(int);
extern "C" bool WINAPI GetMasterVolume();
extern "C" bool WINAPI CloseMasterVolume();

HINSTANCE hInst;
HBRUSH g_hbrBackground = NULL;
HBITMAP hBitmapC;
HBITMAP hBitmapA1[11],hBitmapA2[5],hBitmapA3[6],hBitmapA4[8],hBitmapA5[9];
HBITMAP hBitmapK1[9],hBitmapK2[11],hBitmapK3[6],hBitmapK4[8],hBitmapK5[6];
HBITMAP hBitmapS1[7],hBitmapS2[5],hBitmapS3[9],hBitmapS4[10],hBitmapS5[8];
HBITMAP hBitmapT1[9],hBitmapT2[8],hBitmapT3[5],hBitmapT4[6],hBitmapT5[7];
HBITMAP hBitmapN1[10],hBitmapN2[8],hBitmapN3[12],hBitmapN4[12],hBitmapN5[9];
HBITMAP hBitmapH1[11],hBitmapH2[8],hBitmapH3[9],hBitmapH4[5],hBitmapH5[13];
HBITMAP hBitmapM1[13],hBitmapM2[11],hBitmapM3[11],hBitmapM4[10],hBitmapM5[9];
HBITMAP hBitmapY1[10],hBitmapY3[11],hBitmapY5[9];
HBITMAP hBitmapR1[8],hBitmapR2[6],hBitmapR3[10],hBitmapR4[11],hBitmapR5[8];
HBITMAP hBitmapW1[11],hBitmapW5[12];
HBITMAP hBitmapNN[7];

void * file_load(const char * file, int * psize);

BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam){
    static HWND hSlider1;
    static int nSlider1=60;
    static HWND hSlider2;
    static int nSlider2=300;
    static HWND hRadio;
    static H_AQTKDA hMe;
    static int Counter;
    static int id,size;
    static void *pPhont;
switch(uMsg){
    case WM_INITDIALOG:{
    pPhont = file_load("./voice/aq_rb2.phont", &size);
    hMe = AquesTalk2Da_Create();
    g_hbrBackground = CreateSolidBrush(RGB(128, 128, 255));
    SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, 
    (LPARAM)LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(IDI_MYICON)));
    SendMessage(hwndDlg, WM_SETICON, ICON_BIG, 
    (LPARAM)LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(IDI_MYICON)));
//Clear
hBitmapC=(HBITMAP)LoadImage( NULL, "./data1/0-0.bmp", IMAGE_BITMAP, 
				0, 0, LR_LOADFROMFILE );
//あ
hBitmapA1[1]=(HBITMAP)LoadImage( NULL, "./data1/1-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[2]=(HBITMAP)LoadImage( NULL, "./data1/1-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[3]=(HBITMAP)LoadImage( NULL, "./data1/1-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[4]=(HBITMAP)LoadImage( NULL, "./data1/1-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[5]=(HBITMAP)LoadImage( NULL, "./data1/1-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[6]=(HBITMAP)LoadImage( NULL, "./data1/1-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[7]=(HBITMAP)LoadImage( NULL, "./data1/1-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[8]=(HBITMAP)LoadImage( NULL, "./data1/1-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[9]=(HBITMAP)LoadImage( NULL, "./data1/1-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[10]=(HBITMAP)LoadImage( NULL, "./data1/1-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA1[11]=(HBITMAP)LoadImage( NULL, "./data1/1-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapA2[1]=(HBITMAP)LoadImage( NULL, "./data1/2-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA2[2]=(HBITMAP)LoadImage( NULL, "./data1/2-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA2[3]=(HBITMAP)LoadImage( NULL, "./data1/2-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA2[4]=(HBITMAP)LoadImage( NULL, "./data1/2-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA2[5]=(HBITMAP)LoadImage( NULL, "./data1/2-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapA3[1]=(HBITMAP)LoadImage( NULL, "./data1/3-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA3[2]=(HBITMAP)LoadImage( NULL, "./data1/3-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA3[3]=(HBITMAP)LoadImage( NULL, "./data1/3-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA3[4]=(HBITMAP)LoadImage( NULL, "./data1/3-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA3[5]=(HBITMAP)LoadImage( NULL, "./data1/3-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA3[6]=(HBITMAP)LoadImage( NULL, "./data1/3-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapA4[1]=(HBITMAP)LoadImage( NULL, "./data1/4-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[2]=(HBITMAP)LoadImage( NULL, "./data1/4-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[3]=(HBITMAP)LoadImage( NULL, "./data1/4-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[4]=(HBITMAP)LoadImage( NULL, "./data1/4-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[5]=(HBITMAP)LoadImage( NULL, "./data1/4-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[6]=(HBITMAP)LoadImage( NULL, "./data1/4-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[7]=(HBITMAP)LoadImage( NULL, "./data1/4-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA4[8]=(HBITMAP)LoadImage( NULL, "./data1/4-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapA5[1]=(HBITMAP)LoadImage( NULL, "./data1/5-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[2]=(HBITMAP)LoadImage( NULL, "./data1/5-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[3]=(HBITMAP)LoadImage( NULL, "./data1/5-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[4]=(HBITMAP)LoadImage( NULL, "./data1/5-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[5]=(HBITMAP)LoadImage( NULL, "./data1/5-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[6]=(HBITMAP)LoadImage( NULL, "./data1/5-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[7]=(HBITMAP)LoadImage( NULL, "./data1/5-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[8]=(HBITMAP)LoadImage( NULL, "./data1/5-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapA5[9]=(HBITMAP)LoadImage( NULL, "./data1/5-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//か
hBitmapK1[1]=(HBITMAP)LoadImage( NULL, "./data1/6-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[2]=(HBITMAP)LoadImage( NULL, "./data1/6-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[3]=(HBITMAP)LoadImage( NULL, "./data1/6-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[4]=(HBITMAP)LoadImage( NULL, "./data1/6-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[5]=(HBITMAP)LoadImage( NULL, "./data1/6-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[6]=(HBITMAP)LoadImage( NULL, "./data1/6-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[7]=(HBITMAP)LoadImage( NULL, "./data1/6-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[8]=(HBITMAP)LoadImage( NULL, "./data1/6-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK1[9]=(HBITMAP)LoadImage( NULL, "./data1/6-9.bmp",
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapK2[1]=(HBITMAP)LoadImage( NULL, "./data1/7-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[2]=(HBITMAP)LoadImage( NULL, "./data1/7-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[3]=(HBITMAP)LoadImage( NULL, "./data1/7-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[4]=(HBITMAP)LoadImage( NULL, "./data1/7-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[5]=(HBITMAP)LoadImage( NULL, "./data1/7-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[6]=(HBITMAP)LoadImage( NULL, "./data1/7-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[7]=(HBITMAP)LoadImage( NULL, "./data1/7-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[8]=(HBITMAP)LoadImage( NULL, "./data1/7-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[9]=(HBITMAP)LoadImage( NULL, "./data1/7-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[10]=(HBITMAP)LoadImage( NULL, "./data1/7-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK2[11]=(HBITMAP)LoadImage( NULL, "./data1/7-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapK3[1]=(HBITMAP)LoadImage( NULL, "./data1/8-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK3[2]=(HBITMAP)LoadImage( NULL, "./data1/8-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK3[3]=(HBITMAP)LoadImage( NULL, "./data1/8-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK3[4]=(HBITMAP)LoadImage( NULL, "./data1/8-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK3[5]=(HBITMAP)LoadImage( NULL, "./data1/8-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK3[6]=(HBITMAP)LoadImage( NULL, "./data1/8-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapK4[1]=(HBITMAP)LoadImage( NULL, "./data1/9-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[2]=(HBITMAP)LoadImage( NULL, "./data1/9-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[3]=(HBITMAP)LoadImage( NULL, "./data1/9-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[4]=(HBITMAP)LoadImage( NULL, "./data1/9-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[5]=(HBITMAP)LoadImage( NULL, "./data1/9-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[6]=(HBITMAP)LoadImage( NULL, "./data1/9-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[7]=(HBITMAP)LoadImage( NULL, "./data1/9-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK4[8]=(HBITMAP)LoadImage( NULL, "./data1/9-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapK5[1]=(HBITMAP)LoadImage( NULL, "./data1/10-1.bmp",
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK5[2]=(HBITMAP)LoadImage( NULL, "./data1/10-2.bmp",
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK5[3]=(HBITMAP)LoadImage( NULL, "./data1/10-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK5[4]=(HBITMAP)LoadImage( NULL, "./data1/10-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK5[5]=(HBITMAP)LoadImage( NULL, "./data1/10-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapK5[6]=(HBITMAP)LoadImage( NULL, "./data1/10-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//さ
hBitmapS1[1]=(HBITMAP)LoadImage( NULL, "./data1/11-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[2]=(HBITMAP)LoadImage( NULL, "./data1/11-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[3]=(HBITMAP)LoadImage( NULL, "./data1/11-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[4]=(HBITMAP)LoadImage( NULL, "./data1/11-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[5]=(HBITMAP)LoadImage( NULL, "./data1/11-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[6]=(HBITMAP)LoadImage( NULL, "./data1/11-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS1[7]=(HBITMAP)LoadImage( NULL, "./data1/11-7.bmp",
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapS2[1]=(HBITMAP)LoadImage( NULL, "./data1/12-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS2[2]=(HBITMAP)LoadImage( NULL, "./data1/12-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS2[3]=(HBITMAP)LoadImage( NULL, "./data1/12-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS2[4]=(HBITMAP)LoadImage( NULL, "./data1/12-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS2[5]=(HBITMAP)LoadImage( NULL, "./data1/12-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapS3[1]=(HBITMAP)LoadImage( NULL, "./data1/13-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[2]=(HBITMAP)LoadImage( NULL, "./data1/13-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[3]=(HBITMAP)LoadImage( NULL, "./data1/13-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[4]=(HBITMAP)LoadImage( NULL, "./data1/13-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[5]=(HBITMAP)LoadImage( NULL, "./data1/13-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[6]=(HBITMAP)LoadImage( NULL, "./data1/13-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[7]=(HBITMAP)LoadImage( NULL, "./data1/13-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[8]=(HBITMAP)LoadImage( NULL, "./data1/13-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS3[9]=(HBITMAP)LoadImage( NULL, "./data1/13-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapS4[1]=(HBITMAP)LoadImage( NULL, "./data1/14-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[2]=(HBITMAP)LoadImage( NULL, "./data1/14-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[3]=(HBITMAP)LoadImage( NULL, "./data1/14-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[4]=(HBITMAP)LoadImage( NULL, "./data1/14-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[5]=(HBITMAP)LoadImage( NULL, "./data1/14-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[6]=(HBITMAP)LoadImage( NULL, "./data1/14-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[7]=(HBITMAP)LoadImage( NULL, "./data1/14-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[8]=(HBITMAP)LoadImage( NULL, "./data1/14-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[9]=(HBITMAP)LoadImage( NULL, "./data1/14-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS4[10]=(HBITMAP)LoadImage( NULL, "./data1/14-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapS5[1]=(HBITMAP)LoadImage( NULL, "./data1/15-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[2]=(HBITMAP)LoadImage( NULL, "./data1/15-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[3]=(HBITMAP)LoadImage( NULL, "./data1/15-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[4]=(HBITMAP)LoadImage( NULL, "./data1/15-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[5]=(HBITMAP)LoadImage( NULL, "./data1/15-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[6]=(HBITMAP)LoadImage( NULL, "./data1/15-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[7]=(HBITMAP)LoadImage( NULL, "./data1/15-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapS5[8]=(HBITMAP)LoadImage( NULL, "./data1/15-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//た
hBitmapT1[1]=(HBITMAP)LoadImage( NULL, "./data1/16-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[2]=(HBITMAP)LoadImage( NULL, "./data1/16-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[3]=(HBITMAP)LoadImage( NULL, "./data1/16-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[4]=(HBITMAP)LoadImage( NULL, "./data1/16-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[5]=(HBITMAP)LoadImage( NULL, "./data1/16-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[6]=(HBITMAP)LoadImage( NULL, "./data1/16-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[7]=(HBITMAP)LoadImage( NULL, "./data1/16-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[8]=(HBITMAP)LoadImage( NULL, "./data1/16-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT1[9]=(HBITMAP)LoadImage( NULL, "./data1/16-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapT2[1]=(HBITMAP)LoadImage( NULL, "./data1/17-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[2]=(HBITMAP)LoadImage( NULL, "./data1/17-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[3]=(HBITMAP)LoadImage( NULL, "./data1/17-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[4]=(HBITMAP)LoadImage( NULL, "./data1/17-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[5]=(HBITMAP)LoadImage( NULL, "./data1/17-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[6]=(HBITMAP)LoadImage( NULL, "./data1/17-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[7]=(HBITMAP)LoadImage( NULL, "./data1/17-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT2[8]=(HBITMAP)LoadImage( NULL, "./data1/17-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapT3[1]=(HBITMAP)LoadImage( NULL, "./data1/18-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT3[2]=(HBITMAP)LoadImage( NULL, "./data1/18-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT3[3]=(HBITMAP)LoadImage( NULL, "./data1/18-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT3[4]=(HBITMAP)LoadImage( NULL, "./data1/18-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT3[5]=(HBITMAP)LoadImage( NULL, "./data1/18-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[1]=(HBITMAP)LoadImage( NULL, "./data1/19-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[2]=(HBITMAP)LoadImage( NULL, "./data1/19-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[3]=(HBITMAP)LoadImage( NULL, "./data1/19-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[4]=(HBITMAP)LoadImage( NULL, "./data1/19-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[5]=(HBITMAP)LoadImage( NULL, "./data1/19-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT4[6]=(HBITMAP)LoadImage( NULL, "./data1/19-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapT5[1]=(HBITMAP)LoadImage( NULL, "./data1/20-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[2]=(HBITMAP)LoadImage( NULL, "./data1/20-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[3]=(HBITMAP)LoadImage( NULL, "./data1/20-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[4]=(HBITMAP)LoadImage( NULL, "./data1/20-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[5]=(HBITMAP)LoadImage( NULL, "./data1/20-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[6]=(HBITMAP)LoadImage( NULL, "./data1/20-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapT5[7]=(HBITMAP)LoadImage( NULL, "./data1/20-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//な
hBitmapN1[1]=(HBITMAP)LoadImage( NULL, "./data1/21-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[2]=(HBITMAP)LoadImage( NULL, "./data1/21-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[3]=(HBITMAP)LoadImage( NULL, "./data1/21-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[4]=(HBITMAP)LoadImage( NULL, "./data1/21-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[5]=(HBITMAP)LoadImage( NULL, "./data1/21-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[6]=(HBITMAP)LoadImage( NULL, "./data1/21-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[7]=(HBITMAP)LoadImage( NULL, "./data1/21-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[8]=(HBITMAP)LoadImage( NULL, "./data1/21-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[9]=(HBITMAP)LoadImage( NULL, "./data1/21-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN1[10]=(HBITMAP)LoadImage( NULL, "./data1/21-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapN2[1]=(HBITMAP)LoadImage( NULL, "./data1/22-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[2]=(HBITMAP)LoadImage( NULL, "./data1/22-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[3]=(HBITMAP)LoadImage( NULL, "./data1/22-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[4]=(HBITMAP)LoadImage( NULL, "./data1/22-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[5]=(HBITMAP)LoadImage( NULL, "./data1/22-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[6]=(HBITMAP)LoadImage( NULL, "./data1/22-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[7]=(HBITMAP)LoadImage( NULL, "./data1/22-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN2[8]=(HBITMAP)LoadImage( NULL, "./data1/22-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapN3[1]=(HBITMAP)LoadImage( NULL, "./data1/23-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[2]=(HBITMAP)LoadImage( NULL, "./data1/23-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[3]=(HBITMAP)LoadImage( NULL, "./data1/23-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[4]=(HBITMAP)LoadImage( NULL, "./data1/23-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[5]=(HBITMAP)LoadImage( NULL, "./data1/23-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[6]=(HBITMAP)LoadImage( NULL, "./data1/23-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[7]=(HBITMAP)LoadImage( NULL, "./data1/23-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[8]=(HBITMAP)LoadImage( NULL, "./data1/23-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[9]=(HBITMAP)LoadImage( NULL, "./data1/23-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[10]=(HBITMAP)LoadImage( NULL, "./data1/23-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[11]=(HBITMAP)LoadImage( NULL, "./data1/23-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN3[12]=(HBITMAP)LoadImage( NULL, "./data1/23-12.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapN4[1]=(HBITMAP)LoadImage( NULL, "./data1/24-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[2]=(HBITMAP)LoadImage( NULL, "./data1/24-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[3]=(HBITMAP)LoadImage( NULL, "./data1/24-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[4]=(HBITMAP)LoadImage( NULL, "./data1/24-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[5]=(HBITMAP)LoadImage( NULL, "./data1/24-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[6]=(HBITMAP)LoadImage( NULL, "./data1/24-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[7]=(HBITMAP)LoadImage( NULL, "./data1/24-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[8]=(HBITMAP)LoadImage( NULL, "./data1/24-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[9]=(HBITMAP)LoadImage( NULL, "./data1/24-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[10]=(HBITMAP)LoadImage( NULL, "./data1/24-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[11]=(HBITMAP)LoadImage( NULL, "./data1/24-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN4[12]=(HBITMAP)LoadImage( NULL, "./data1/24-12.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapN5[1]=(HBITMAP)LoadImage( NULL, "./data1/25-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[2]=(HBITMAP)LoadImage( NULL, "./data1/25-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[3]=(HBITMAP)LoadImage( NULL, "./data1/25-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[4]=(HBITMAP)LoadImage( NULL, "./data1/25-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[5]=(HBITMAP)LoadImage( NULL, "./data1/25-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[6]=(HBITMAP)LoadImage( NULL, "./data1/25-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[7]=(HBITMAP)LoadImage( NULL, "./data1/25-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapN5[8]=(HBITMAP)LoadImage( NULL, "./data1/25-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//は
hBitmapH1[1]=(HBITMAP)LoadImage( NULL, "./data1/26-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[2]=(HBITMAP)LoadImage( NULL, "./data1/26-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[3]=(HBITMAP)LoadImage( NULL, "./data1/26-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[4]=(HBITMAP)LoadImage( NULL, "./data1/26-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[5]=(HBITMAP)LoadImage( NULL, "./data1/26-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[6]=(HBITMAP)LoadImage( NULL, "./data1/26-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[7]=(HBITMAP)LoadImage( NULL, "./data1/26-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[8]=(HBITMAP)LoadImage( NULL, "./data1/26-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[9]=(HBITMAP)LoadImage( NULL, "./data1/26-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[10]=(HBITMAP)LoadImage( NULL, "./data1/26-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH1[11]=(HBITMAP)LoadImage( NULL, "./data1/26-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapH2[1]=(HBITMAP)LoadImage( NULL, "./data1/27-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[2]=(HBITMAP)LoadImage( NULL, "./data1/27-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[3]=(HBITMAP)LoadImage( NULL, "./data1/27-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[4]=(HBITMAP)LoadImage( NULL, "./data1/27-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[5]=(HBITMAP)LoadImage( NULL, "./data1/27-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[6]=(HBITMAP)LoadImage( NULL, "./data1/27-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[7]=(HBITMAP)LoadImage( NULL, "./data1/27-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH2[8]=(HBITMAP)LoadImage( NULL, "./data1/27-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapH3[1]=(HBITMAP)LoadImage( NULL, "./data1/28-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[2]=(HBITMAP)LoadImage( NULL, "./data1/28-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[3]=(HBITMAP)LoadImage( NULL, "./data1/28-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[4]=(HBITMAP)LoadImage( NULL, "./data1/28-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[5]=(HBITMAP)LoadImage( NULL, "./data1/28-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[6]=(HBITMAP)LoadImage( NULL, "./data1/28-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[7]=(HBITMAP)LoadImage( NULL, "./data1/28-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[8]=(HBITMAP)LoadImage( NULL, "./data1/28-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH3[9]=(HBITMAP)LoadImage( NULL, "./data1/28-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapH4[1]=(HBITMAP)LoadImage( NULL, "./data1/29-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH4[2]=(HBITMAP)LoadImage( NULL, "./data1/29-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH4[3]=(HBITMAP)LoadImage( NULL, "./data1/29-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH4[4]=(HBITMAP)LoadImage( NULL, "./data1/29-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH4[5]=(HBITMAP)LoadImage( NULL, "./data1/29-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapH5[1]=(HBITMAP)LoadImage( NULL, "./data1/30-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[2]=(HBITMAP)LoadImage( NULL, "./data1/30-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[3]=(HBITMAP)LoadImage( NULL, "./data1/30-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[4]=(HBITMAP)LoadImage( NULL, "./data1/30-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[5]=(HBITMAP)LoadImage( NULL, "./data1/30-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[6]=(HBITMAP)LoadImage( NULL, "./data1/30-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[7]=(HBITMAP)LoadImage( NULL, "./data1/30-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[8]=(HBITMAP)LoadImage( NULL, "./data1/30-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[9]=(HBITMAP)LoadImage( NULL, "./data1/30-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[10]=(HBITMAP)LoadImage( NULL, "./data1/30-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[11]=(HBITMAP)LoadImage( NULL, "./data1/30-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[12]=(HBITMAP)LoadImage( NULL, "./data1/30-12.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapH5[13]=(HBITMAP)LoadImage( NULL, "./data1/30-13.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//ま
hBitmapM1[1]=(HBITMAP)LoadImage( NULL, "./data1/31-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[2]=(HBITMAP)LoadImage( NULL, "./data1/31-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[3]=(HBITMAP)LoadImage( NULL, "./data1/31-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[4]=(HBITMAP)LoadImage( NULL, "./data1/31-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[5]=(HBITMAP)LoadImage( NULL, "./data1/31-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[6]=(HBITMAP)LoadImage( NULL, "./data1/31-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[7]=(HBITMAP)LoadImage( NULL, "./data1/31-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[8]=(HBITMAP)LoadImage( NULL, "./data1/31-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[9]=(HBITMAP)LoadImage( NULL, "./data1/31-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[10]=(HBITMAP)LoadImage( NULL, "./data1/31-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[11]=(HBITMAP)LoadImage( NULL, "./data1/31-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[12]=(HBITMAP)LoadImage( NULL, "./data1/31-12.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM1[13]=(HBITMAP)LoadImage( NULL, "./data1/31-13.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapM2[1]=(HBITMAP)LoadImage( NULL, "./data1/32-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[2]=(HBITMAP)LoadImage( NULL, "./data1/32-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[3]=(HBITMAP)LoadImage( NULL, "./data1/32-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[4]=(HBITMAP)LoadImage( NULL, "./data1/32-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[5]=(HBITMAP)LoadImage( NULL, "./data1/32-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[6]=(HBITMAP)LoadImage( NULL, "./data1/32-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[7]=(HBITMAP)LoadImage( NULL, "./data1/32-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[8]=(HBITMAP)LoadImage( NULL, "./data1/32-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[9]=(HBITMAP)LoadImage( NULL, "./data1/32-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[10]=(HBITMAP)LoadImage( NULL, "./data1/32-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM2[11]=(HBITMAP)LoadImage( NULL, "./data1/32-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapM3[1]=(HBITMAP)LoadImage( NULL, "./data1/33-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[2]=(HBITMAP)LoadImage( NULL, "./data1/33-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[3]=(HBITMAP)LoadImage( NULL, "./data1/33-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[4]=(HBITMAP)LoadImage( NULL, "./data1/33-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[5]=(HBITMAP)LoadImage( NULL, "./data1/33-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[6]=(HBITMAP)LoadImage( NULL, "./data1/33-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[7]=(HBITMAP)LoadImage( NULL, "./data1/33-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[8]=(HBITMAP)LoadImage( NULL, "./data1/33-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[9]=(HBITMAP)LoadImage( NULL, "./data1/33-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[10]=(HBITMAP)LoadImage( NULL, "./data1/33-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM3[11]=(HBITMAP)LoadImage( NULL, "./data1/33-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapM4[1]=(HBITMAP)LoadImage( NULL, "./data1/34-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[2]=(HBITMAP)LoadImage( NULL, "./data1/34-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[3]=(HBITMAP)LoadImage( NULL, "./data1/34-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[4]=(HBITMAP)LoadImage( NULL, "./data1/34-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[5]=(HBITMAP)LoadImage( NULL, "./data1/34-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[6]=(HBITMAP)LoadImage( NULL, "./data1/34-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[7]=(HBITMAP)LoadImage( NULL, "./data1/34-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[8]=(HBITMAP)LoadImage( NULL, "./data1/34-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[9]=(HBITMAP)LoadImage( NULL, "./data1/34-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM4[10]=(HBITMAP)LoadImage( NULL, "./data1/34-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapM5[1]=(HBITMAP)LoadImage( NULL, "./data1/35-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[2]=(HBITMAP)LoadImage( NULL, "./data1/35-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[3]=(HBITMAP)LoadImage( NULL, "./data1/35-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[4]=(HBITMAP)LoadImage( NULL, "./data1/35-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[5]=(HBITMAP)LoadImage( NULL, "./data1/35-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[6]=(HBITMAP)LoadImage( NULL, "./data1/35-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[7]=(HBITMAP)LoadImage( NULL, "./data1/35-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[8]=(HBITMAP)LoadImage( NULL, "./data1/35-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapM5[9]=(HBITMAP)LoadImage( NULL, "./data1/35-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//や
hBitmapY1[1]=(HBITMAP)LoadImage( NULL, "./data1/36-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[2]=(HBITMAP)LoadImage( NULL, "./data1/36-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[3]=(HBITMAP)LoadImage( NULL, "./data1/36-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[4]=(HBITMAP)LoadImage( NULL, "./data1/36-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[5]=(HBITMAP)LoadImage( NULL, "./data1/36-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[6]=(HBITMAP)LoadImage( NULL, "./data1/36-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[7]=(HBITMAP)LoadImage( NULL, "./data1/36-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[8]=(HBITMAP)LoadImage( NULL, "./data1/36-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[9]=(HBITMAP)LoadImage( NULL, "./data1/36-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY1[10]=(HBITMAP)LoadImage( NULL, "./data1/36-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapY3[1]=(HBITMAP)LoadImage( NULL, "./data1/38-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[2]=(HBITMAP)LoadImage( NULL, "./data1/38-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[3]=(HBITMAP)LoadImage( NULL, "./data1/38-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[4]=(HBITMAP)LoadImage( NULL, "./data1/38-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[5]=(HBITMAP)LoadImage( NULL, "./data1/38-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[6]=(HBITMAP)LoadImage( NULL, "./data1/38-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[7]=(HBITMAP)LoadImage( NULL, "./data1/38-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[8]=(HBITMAP)LoadImage( NULL, "./data1/38-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[9]=(HBITMAP)LoadImage( NULL, "./data1/38-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[10]=(HBITMAP)LoadImage( NULL, "./data1/38-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY3[11]=(HBITMAP)LoadImage( NULL, "./data1/38-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapY5[1]=(HBITMAP)LoadImage( NULL, "./data1/40-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[2]=(HBITMAP)LoadImage( NULL, "./data1/40-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[3]=(HBITMAP)LoadImage( NULL, "./data1/40-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[4]=(HBITMAP)LoadImage( NULL, "./data1/40-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[5]=(HBITMAP)LoadImage( NULL, "./data1/40-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[6]=(HBITMAP)LoadImage( NULL, "./data1/40-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[7]=(HBITMAP)LoadImage( NULL, "./data1/40-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[8]=(HBITMAP)LoadImage( NULL, "./data1/40-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapY5[9]=(HBITMAP)LoadImage( NULL, "./data1/40-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//ら
hBitmapR1[1]=(HBITMAP)LoadImage( NULL, "./data1/41-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[2]=(HBITMAP)LoadImage( NULL, "./data1/41-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[3]=(HBITMAP)LoadImage( NULL, "./data1/41-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[4]=(HBITMAP)LoadImage( NULL, "./data1/41-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[5]=(HBITMAP)LoadImage( NULL, "./data1/41-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[6]=(HBITMAP)LoadImage( NULL, "./data1/41-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[7]=(HBITMAP)LoadImage( NULL, "./data1/41-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR1[8]=(HBITMAP)LoadImage( NULL, "./data1/41-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapR2[1]=(HBITMAP)LoadImage( NULL, "./data1/42-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR2[2]=(HBITMAP)LoadImage( NULL, "./data1/42-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR2[3]=(HBITMAP)LoadImage( NULL, "./data1/42-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR2[4]=(HBITMAP)LoadImage( NULL, "./data1/42-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR2[5]=(HBITMAP)LoadImage( NULL, "./data1/42-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR2[6]=(HBITMAP)LoadImage( NULL, "./data1/42-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapR3[1]=(HBITMAP)LoadImage( NULL, "./data1/43-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[2]=(HBITMAP)LoadImage( NULL, "./data1/43-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[3]=(HBITMAP)LoadImage( NULL, "./data1/43-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[4]=(HBITMAP)LoadImage( NULL, "./data1/43-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[5]=(HBITMAP)LoadImage( NULL, "./data1/43-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[6]=(HBITMAP)LoadImage( NULL, "./data1/43-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[7]=(HBITMAP)LoadImage( NULL, "./data1/43-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[8]=(HBITMAP)LoadImage( NULL, "./data1/43-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[9]=(HBITMAP)LoadImage( NULL, "./data1/43-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR3[10]=(HBITMAP)LoadImage( NULL, "./data1/43-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapR4[1]=(HBITMAP)LoadImage( NULL, "./data1/44-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[2]=(HBITMAP)LoadImage( NULL, "./data1/44-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[3]=(HBITMAP)LoadImage( NULL, "./data1/44-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[4]=(HBITMAP)LoadImage( NULL, "./data1/44-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[5]=(HBITMAP)LoadImage( NULL, "./data1/44-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[6]=(HBITMAP)LoadImage( NULL, "./data1/44-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[7]=(HBITMAP)LoadImage( NULL, "./data1/44-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[8]=(HBITMAP)LoadImage( NULL, "./data1/44-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[9]=(HBITMAP)LoadImage( NULL, "./data1/44-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[10]=(HBITMAP)LoadImage( NULL, "./data1/44-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR4[11]=(HBITMAP)LoadImage( NULL, "./data1/44-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapR5[1]=(HBITMAP)LoadImage( NULL, "./data1/45-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[2]=(HBITMAP)LoadImage( NULL, "./data1/45-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[3]=(HBITMAP)LoadImage( NULL, "./data1/45-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[4]=(HBITMAP)LoadImage( NULL, "./data1/45-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[5]=(HBITMAP)LoadImage( NULL, "./data1/45-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[6]=(HBITMAP)LoadImage( NULL, "./data1/45-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[7]=(HBITMAP)LoadImage( NULL, "./data1/45-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapR5[8]=(HBITMAP)LoadImage( NULL, "./data1/45-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//わ
hBitmapW1[2]=(HBITMAP)LoadImage( NULL, "./data1/46-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[3]=(HBITMAP)LoadImage( NULL, "./data1/46-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[4]=(HBITMAP)LoadImage( NULL, "./data1/46-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[5]=(HBITMAP)LoadImage( NULL, "./data1/46-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[6]=(HBITMAP)LoadImage( NULL, "./data1/46-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[7]=(HBITMAP)LoadImage( NULL, "./data1/46-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[8]=(HBITMAP)LoadImage( NULL, "./data1/46-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[9]=(HBITMAP)LoadImage( NULL, "./data1/46-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[10]=(HBITMAP)LoadImage( NULL, "./data1/46-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW1[11]=(HBITMAP)LoadImage( NULL, "./data1/46-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );

hBitmapW5[1]=(HBITMAP)LoadImage( NULL, "./data1/50-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[2]=(HBITMAP)LoadImage( NULL, "./data1/50-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[3]=(HBITMAP)LoadImage( NULL, "./data1/50-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[4]=(HBITMAP)LoadImage( NULL, "./data1/50-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[5]=(HBITMAP)LoadImage( NULL, "./data1/50-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[6]=(HBITMAP)LoadImage( NULL, "./data1/50-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[7]=(HBITMAP)LoadImage( NULL, "./data1/50-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[8]=(HBITMAP)LoadImage( NULL, "./data1/50-8.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[9]=(HBITMAP)LoadImage( NULL, "./data1/50-9.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[10]=(HBITMAP)LoadImage( NULL, "./data1/50-10.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[11]=(HBITMAP)LoadImage( NULL, "./data1/50-11.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapW5[12]=(HBITMAP)LoadImage( NULL, "./data1/50-12.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//ん
hBitmapNN[1]=(HBITMAP)LoadImage( NULL, "./data1/51-1.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[2]=(HBITMAP)LoadImage( NULL, "./data1/51-2.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[3]=(HBITMAP)LoadImage( NULL, "./data1/51-3.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[4]=(HBITMAP)LoadImage( NULL, "./data1/51-4.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[5]=(HBITMAP)LoadImage( NULL, "./data1/51-5.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[6]=(HBITMAP)LoadImage( NULL, "./data1/51-6.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
hBitmapNN[7]=(HBITMAP)LoadImage( NULL, "./data1/51-7.bmp", 
IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
//あ
SendDlgItemMessage(hwndDlg,IDC_BUTTON1,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP1)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON2,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP2)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON3,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP3)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON4,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP4)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON5,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP5)));
//か
SendDlgItemMessage(hwndDlg,IDC_BUTTON6,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP6)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON7,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP7)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON8,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP8)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON9,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP9)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON10,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP10)));
//さ
SendDlgItemMessage(hwndDlg,IDC_BUTTON11,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP11)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON12,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP12)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON13,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP13)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON14,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP14)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON15,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP15)));
//た
SendDlgItemMessage(hwndDlg,IDC_BUTTON16,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP16)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON17,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP17)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON18,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP18)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON19,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP19)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON20,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP20)));
//な
SendDlgItemMessage(hwndDlg,IDC_BUTTON21,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP21)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON22,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP22)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON23,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP23)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON24,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP24)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON25,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP25)));
//は
SendDlgItemMessage(hwndDlg,IDC_BUTTON26,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP26)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON27,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP27)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON28,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP28)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON29,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP29)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON30,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP30)));
//ま
SendDlgItemMessage(hwndDlg,IDC_BUTTON31,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP31)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON32,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP32)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON33,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP33)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON34,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP34)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON35,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP35)));
//や
SendDlgItemMessage(hwndDlg,IDC_BUTTON36,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP36)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON38,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP38)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON40,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP40)));
//ら
SendDlgItemMessage(hwndDlg,IDC_BUTTON41,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP41)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON42,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP42)));	
SendDlgItemMessage(hwndDlg,IDC_BUTTON43,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP43)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON44,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP44)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON45,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP45)));		
//わ	
SendDlgItemMessage(hwndDlg,IDC_BUTTON46,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP46)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON50,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP50)));
SendDlgItemMessage(hwndDlg,IDC_BUTTON51,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP51)));
//Goto Aquestalk2 Home Page
SendDlgItemMessage(hwndDlg,IDC_BUTTON52,BM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP52)));
//あの絵を表示
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE1)));
//あの書き順最後を表示
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA1[11]);
//声の選択のラジオボタン初期化   
hRadio=GetDlgItem(hwndDlg,IDC_RADIO1);
SendMessage(hRadio,BM_SETCHECK, BST_CHECKED, 0 );
//音量調節スライダーの初期化    
hSlider1=GetDlgItem(hwndDlg,IDC_SLIDER1);
SendMessage(hSlider1, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, 140));
SendMessage(hSlider1, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)nSlider1);
//速さ調節のスライダー初期化    
hSlider2=GetDlgItem(hwndDlg,IDC_SLIDER2);
SendMessage(hSlider2, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, 655));
SendMessage(hSlider2, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)nSlider2);
GetMasterVolume();
return TRUE;
}


case WM_CTLCOLORDLG:{
return (LRESULT)g_hbrBackground;// 背景色の色
}
case WM_CTLCOLORSTATIC:{
HDC hDC = (HDC)wParam;
SetBkMode(hDC, TRANSPARENT);// 背景を透過
SetTextColor (hDC, RGB(255,255,255));// テキストの色
return (LRESULT)g_hbrBackground;// 背景色の色
}

case WM_COMMAND:
AquesTalk2Da_Stop(hMe);//音声合成ストップ
switch(LOWORD(wParam)){
//あ
case IDC_BUTTON1:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE1)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"あひるの/あ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=1;Counter=1;break;

case IDC_BUTTON2:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE2)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"いちごの/い。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=2;Counter=1;break;

case IDC_BUTTON3:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE3)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"うさぎの/う。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=3;Counter=1;break;

case IDC_BUTTON4:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE4)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"えんぴつの/え。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=4;Counter=1;break;

case IDC_BUTTON5:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE5)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"おにぎりの/お。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=5;Counter=1;break;
//か
case IDC_BUTTON6:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), 
MAKEINTRESOURCE(IDB_PICTURE6)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"かめの/か。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=6;Counter=1;break;

case IDC_BUTTON7:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE7)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"きんぎょの/き。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=7;Counter=1;break;

case IDC_BUTTON8:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE8)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"くつの/く。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=8;Counter=1;break;

case IDC_BUTTON9:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE9)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"けんだまの/け。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=9;Counter=1;break;

case IDC_BUTTON10:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE10)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"こまの/こ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=10;Counter=1;break;
//さ
case IDC_BUTTON11:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE11)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"さくらんぼの/さ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=11;Counter=1;break;

case IDC_BUTTON12:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE12)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"しまうまの/し。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=12;Counter=1;break;

case IDC_BUTTON13:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE13)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"すいかの/す。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=13;Counter=1;break;

case IDC_BUTTON14:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE14)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"せみの/せ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=14;Counter=1;break;
	
case IDC_BUTTON15:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE15)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"そうじきの/そ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=15;Counter=1;
break;
//た
case IDC_BUTTON16:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE16)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"たまごの/た。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=16;
Counter=1;
break;

case IDC_BUTTON17:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE17)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ちりとりの/ち。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=17;
Counter=1;
break;
case IDC_BUTTON18:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE18)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"つみきの/つ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=18;Counter=1;break;

case IDC_BUTTON19:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE19)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"てぶくろの/て。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=19;Counter=1;break;

case IDC_BUTTON20:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE20)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"とけいの/と。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=20;Counter=1;break;
//な
case IDC_BUTTON21:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE21)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"なすの/な。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=21;Counter=1;break;

case IDC_BUTTON22:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE22)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"にわとりの/に。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=22;Counter=1;break;

case IDC_BUTTON23:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE23)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ぬりえの/ぬ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=23;Counter=1;break;

case IDC_BUTTON24:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE24)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ねこの/ね。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=24;Counter=1;break;

case IDC_BUTTON25:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE25)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"のこぎりの/の。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=25;Counter=1;break;
//は
case IDC_BUTTON26:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE26)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"はさみの/は。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=26;
Counter=1;
break;
case IDC_BUTTON27:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE27)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ひよこの/ひ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=27;Counter=1;break;

case IDC_BUTTON28:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE28)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ふうせんの/ふ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=28;
Counter=1;
break;
case IDC_BUTTON29:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE29)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"へびの/へ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=29;Counter=1;break;

case IDC_BUTTON30:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE30)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ほっとけーきの/ほ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=30;Counter=1;break;
//ま
case IDC_BUTTON31:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE31)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"まくらの/ま。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=31;Counter=1;break;

case IDC_BUTTON32:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE32)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"みかんの/み。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=32;Counter=1;break;

case IDC_BUTTON33:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE33)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"むしかごの/む。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=33;Counter=1;break;

case IDC_BUTTON34:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE34)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"めだまやきの/め。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=34;Counter=1;break;

case IDC_BUTTON35:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE35)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ももの/も。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=35;Counter=1;break;

//や
case IDC_BUTTON36:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE36)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"やぎの/や。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=36;Counter=1;break;
case IDC_BUTTON38:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE38)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ゆりの/ゆ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=38;Counter=1;break;

case IDC_BUTTON40:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE40)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ようかんの/よ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=40;Counter=1;break;
//ら
case IDC_BUTTON41:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE41)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"らくだの/ら。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=41;Counter=1;break;
	
case IDC_BUTTON42:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE42)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"りんごの/り。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=42;
Counter=1;
break;
case IDC_BUTTON43:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE43)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"かえるの/る。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=43;
Counter=1;
break;
case IDC_BUTTON44:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE44)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"れんこんの/れ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=44;Counter=1;break;

case IDC_BUTTON45:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE45)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ろうそくの/ろ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=45;
Counter=1;
break;
case IDC_BUTTON46:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE46)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"わなげの/わ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=46;Counter=1;
break;
	
case IDC_BUTTON50:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE50)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"ぼーるをけるのおっ。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=50;Counter=1;
break;

case IDC_BUTTON51:
SendDlgItemMessage(hwndDlg,IDC_PICTURE1,STM_SETIMAGE,IMAGE_BITMAP,
(LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_PICTURE51)));
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapC);
AquesTalk2Da_Play(hMe,"にんじんの/ん。",nSlider1,pPhont,0,0,0);
SetTimer(hwndDlg, TIMER_ID, 200-nSlider1, NULL);
id=51;Counter=1;break;

case IDC_BUTTON52://音声合成Auest2配布サイトへ
ShellExecute(hwndDlg, "open", "http://www.a-quest.com/index.html",
NULL, NULL, SW_SHOWNORMAL);
break;
        
case IDC_RADIO1:
pPhont = file_load("./voice/aq_rb2.phont", &size);
hRadio = GetDlgItem( hwndDlg, IDC_RADIO1 );
SendMessage( hRadio, BM_SETCHECK, BST_CHECKED, 0 );  // ON
hRadio = GetDlgItem( hwndDlg, IDC_RADIO2 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );  // OFF
hRadio = GetDlgItem( hwndDlg, IDC_RADIO3 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );
break;

case IDC_RADIO2:
pPhont = file_load("./voice/aq_momo1.phont", &size);
hRadio = GetDlgItem( hwndDlg, IDC_RADIO2 );
SendMessage( hRadio, BM_SETCHECK, BST_CHECKED, 0 );  // ON
hRadio = GetDlgItem( hwndDlg, IDC_RADIO1 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );  // OFF
hRadio = GetDlgItem( hwndDlg, IDC_RADIO3 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );  // OFF
break;

case IDC_RADIO3:
pPhont = file_load("./voice/aq_robo.phont", &size);
hRadio = GetDlgItem( hwndDlg, IDC_RADIO3 );
SendMessage( hRadio, BM_SETCHECK, BST_CHECKED, 0 );  // ON
hRadio = GetDlgItem( hwndDlg, IDC_RADIO1 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );  // OFF
hRadio = GetDlgItem( hwndDlg, IDC_RADIO2 );
SendMessage( hRadio, BM_SETCHECK, BST_UNCHECKED, 0 );  // OFF
break;

}//WM_COMMAD内swich文終了

case WM_HSCROLL:{
if( (HWND)lParam == GetDlgItem(hwndDlg, IDC_SLIDER1 ) ){
nSlider1=(int) SendMessage(hSlider1, TBM_GETPOS, 0, 0);
}
if( (HWND)lParam == GetDlgItem(hwndDlg, IDC_SLIDER2 ) ){
nSlider2=(int) SendMessage(hSlider2, TBM_GETPOS, 0, 0);
SetMasterVolume(nSlider2*100);
}
return TRUE;
}

case WM_TIMER:{
if(id==1){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA1[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==2){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA2[Counter]);
Counter=Counter+1;
if(Counter > 5) KillTimer(hwndDlg,TIMER_ID);
}
if(id==3){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA3[Counter]);
Counter=Counter+1;
if(Counter > 6) KillTimer(hwndDlg,TIMER_ID);
}
if(id==4){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA4[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==5){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapA5[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==6){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapK1[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==7){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapK2[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==8){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapK3[Counter]);
Counter=Counter+1;
if(Counter > 6) KillTimer(hwndDlg,TIMER_ID);
}
if(id==9){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapK4[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==10){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapK5[Counter]);
Counter=Counter+1;
if(Counter > 6) KillTimer(hwndDlg,TIMER_ID);
}
if(id==11){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapS1[Counter]);
Counter=Counter+1;
if(Counter > 7) KillTimer(hwndDlg,TIMER_ID);
}
if(id==12){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapS2[Counter]);
Counter=Counter+1;
if(Counter > 5) KillTimer(hwndDlg,TIMER_ID);
}
if(id==13){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapS3[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==14){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapS4[Counter]);
Counter=Counter+1;
if(Counter > 10) KillTimer(hwndDlg,TIMER_ID);
}
if(id==15){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapS5[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==16){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapT1[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==17){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapT2[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==18){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapT3[Counter]);
Counter=Counter+1;
if(Counter > 5) KillTimer(hwndDlg,TIMER_ID);
}
if(id==19){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapT4[Counter]);
Counter=Counter+1;
if(Counter > 6) KillTimer(hwndDlg,TIMER_ID);
}
if(id==20){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapT5[Counter]);
Counter=Counter+1;
if(Counter > 7) KillTimer(hwndDlg,TIMER_ID);
}
if(id==21){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapN1[Counter]);
Counter=Counter+1;
if(Counter > 10) KillTimer(hwndDlg,TIMER_ID);
}
if(id==22){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapN2[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==23){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapN3[Counter]);
Counter=Counter+1;
if(Counter > 12) KillTimer(hwndDlg,TIMER_ID);
}
if(id==24){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapN4[Counter]);
Counter=Counter+1;
if(Counter > 12) KillTimer(hwndDlg,TIMER_ID);
}
if(id==25){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapN5[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==26){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapH1[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==27){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapH2[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==28){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapH3[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==29){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapH4[Counter]);
Counter=Counter+1;
if(Counter > 5) KillTimer(hwndDlg,TIMER_ID);
}
if(id==30){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapH5[Counter]);
Counter=Counter+1;
if(Counter > 13) KillTimer(hwndDlg,TIMER_ID);
}
if(id==31){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapM1[Counter]);
Counter=Counter+1;
if(Counter > 13) KillTimer(hwndDlg,TIMER_ID);
}
if(id==32){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapM2[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==33){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapM3[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==34){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapM4[Counter]);
Counter=Counter+1;
if(Counter > 10) KillTimer(hwndDlg,TIMER_ID);
}
if(id==35){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapM5[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==36){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapY1[Counter]);
Counter=Counter+1;
if(Counter > 10) KillTimer(hwndDlg,TIMER_ID);
}
if(id==38){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapY3[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==40){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapY5[Counter]);
Counter=Counter+1;
if(Counter > 9) KillTimer(hwndDlg,TIMER_ID);
}
if(id==41){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapR1[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==42){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapR2[Counter]);
Counter=Counter+1;
if(Counter > 6) KillTimer(hwndDlg,TIMER_ID);
}
if(id==43){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapR3[Counter]);
Counter=Counter+1;
if(Counter > 10) KillTimer(hwndDlg,TIMER_ID);
}
if(id==44){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapR4[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==45){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapR5[Counter]);
Counter=Counter+1;
if(Counter > 8) KillTimer(hwndDlg,TIMER_ID);
}
if(id==46){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapW1[Counter]);
Counter=Counter+1;
if(Counter > 11) KillTimer(hwndDlg,TIMER_ID);
}
if(id==50){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapW5[Counter]);
Counter=Counter+1;
if(Counter > 12) KillTimer(hwndDlg,TIMER_ID);
}
if(id==51){
SendDlgItemMessage(hwndDlg,IDC_PICTURE2,STM_SETIMAGE,
IMAGE_BITMAP,(LPARAM)hBitmapNN[Counter]);
Counter=Counter+1;
if(Counter > 7) KillTimer(hwndDlg,TIMER_ID);
}
break;
}

case WM_CLOSE:
{
CloseMasterVolume();
AquesTalk2Da_Release(hMe);
EndDialog(hwndDlg, 0);
return TRUE;
}

}
return FALSE;
}


int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd){
hInst = hInstance;
return DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), NULL, (DLGPROC)DialogProc);
}


void * file_load(const char * file, int * psize)
{
FILE *fp;
char *data;
struct _stat st;
*psize = 0;
if( _stat(file, &st)!=0) return NULL;
if((data=(char *)malloc(st.st_size))==NULL){
fprintf(stderr,"can not alloc memory(file_load)\n");
return NULL;
}
if((fp=fopen(file,"rb"))==NULL) {
free(data);
perror(file);
return NULL;
}
if(fread(data, 1, st.st_size, fp)<(unsigned)st.st_size) {
fprintf(stderr,"can not read data (file_load)\n");
free(data);
fclose(fp);
return NULL;
}
fclose(fp);
*psize = st.st_size;
return data;
}

resource.h
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif

#define IDD_MAINWINDOW 1001
#define IDI_ICON1      1002

#define IDB_BITMAP1                             101
#define IDB_BITMAP2                             102
#define IDB_BITMAP3                             103
#define IDB_PICTURE1                            104
#define IDB_PICTURE2                            105
#define IDB_PICTURE3                            106
#define DLG_MAIN                                108
#define IDI_MYICON                              110
#define IDB_BITMAP4                             111
#define IDB_BITMAP5                             112
#define IDB_PICTURE4                            114
#define IDB_PICTURE5                            116
#define IDB_BITMAP6                             117
#define IDB_BITMAP7                             118
#define IDB_BITMAP8                             119
#define IDB_BITMAP9                             120
#define IDB_BITMAP10                            121
#define IDB_BITMAP11                            122
#define IDB_BITMAP12                            123
#define IDB_BITMAP13                            124
#define IDB_BITMAP14                            125
#define IDB_BITMAP15                            126
#define IDB_BITMAP16                            127
#define IDB_BITMAP17                            128
#define IDB_BITMAP18                            129
#define IDB_BITMAP19                            130
#define IDB_BITMAP20                            131
#define IDB_BITMAP21                            132
#define IDB_BITMAP22                            133
#define IDB_BITMAP23                            134
#define IDB_BITMAP24                            135
#define IDB_BITMAP25                            136
#define IDB_BITMAP26                            137
#define IDB_BITMAP27                            138
#define IDB_BITMAP28                            139
#define IDB_BITMAP29                            140
#define IDB_BITMAP30                            141
#define IDB_BITMAP31                            142
#define IDB_BITMAP32                            143
#define IDB_BITMAP33                            144
#define IDB_BITMAP34                            145
#define IDB_BITMAP35                            146
#define IDB_BITMAP36                            147
#define IDB_BITMAP38                            149
#define IDB_BITMAP40                            151
#define IDB_BITMAP41                            152
#define IDB_BITMAP42                            153
#define IDB_BITMAP43                            154
#define IDB_BITMAP44                            155
#define IDB_BITMAP45                            156
#define IDB_BITMAP46                            157
#define IDB_BITMAP50                            162
#define IDB_BITMAP51                            163
#define IDB_BITMAP52                            300
#define IDB_PICTURE6                            165
#define IDB_PICTURE7                            167
#define IDB_PICTURE8                            169
#define IDB_PICTURE9                            171
#define IDB_PICTURE10                           173
#define IDB_PICTURE11                           175
#define IDB_PICTURE12                           177
#define IDB_PICTURE13                           179
#define IDB_PICTURE14                           181
#define IDB_PICTURE15                           183
#define IDB_PICTURE16                           185
#define IDB_PICTURE17                           187
#define IDB_PICTURE18                           189
#define IDB_PICTURE19                           191
#define IDB_PICTURE20                           193
#define IDB_PICTURE21                           195
#define IDB_PICTURE22                           197
#define IDB_PICTURE23                           199
#define IDB_PICTURE24                           201
#define IDB_PICTURE25                           203
#define IDB_PICTURE26                           205
#define IDB_PICTURE27                           207
#define IDB_PICTURE28                           209
#define IDB_PICTURE29                           211
#define IDB_PICTURE30                           213
#define IDB_PICTURE31                           215
#define IDB_PICTURE32                           217
#define IDB_PICTURE33                           219
#define IDB_PICTURE34                           221
#define IDB_PICTURE35                           223
#define IDB_PICTURE36                           225
#define IDB_PICTURE38                           227
#define IDB_PICTURE40                           229
#define IDB_PICTURE41                           301
#define IDB_PICTURE42                           303
#define IDB_PICTURE43                           305
#define IDB_PICTURE44                           307
#define IDB_PICTURE45                           309
#define IDB_PICTURE46                           311
#define IDB_PICTURE50                           313
#define IDB_PICTURE51                           315
#define IDC_BUTTON4                             1000
#define IDC_BUTTON5                             1001
#define IDC_BUTTON1                             1002
#define IDC_SLIDER1                             1003
#define IDC_SLIDER2                             1004
#define IDC_BUTTON2                             1005
#define IDC_BUTTON3                             1006
#define IDC_PICTURE1                            1007
#define IDC_PICTURE2                            1008
#define IDC_BUTTON6                             1009
#define IDC_BUTTON7                             1010
#define IDC_BUTTON8                             1011
#define IDC_BUTTON9                             1012
#define IDC_BUTTON10                            1013
#define IDC_BUTTON11                            1014
#define IDC_BUTTON12                            1015
#define IDC_BUTTON13                            1016
#define IDC_BUTTON14                            1017
#define IDC_BUTTON15                            1018
#define IDC_BUTTON16                            1019
#define IDC_BUTTON17                            1020
#define IDC_BUTTON18                            1021
#define IDC_BUTTON19                            1022
#define IDC_BUTTON20                            1023
#define IDC_BUTTON21                            1024
#define IDC_BUTTON22                            1025
#define IDC_BUTTON23                            1026
#define IDC_BUTTON24                            1027
#define IDC_BUTTON25                            1028
#define IDC_BUTTON26                            1029
#define IDC_BUTTON27                            1030
#define IDC_BUTTON28                            1031
#define IDC_BUTTON29                            1032
#define IDC_BUTTON30                            1033
#define IDC_BUTTON31                            1034
#define IDC_BUTTON32                            1035
#define IDC_BUTTON33                            1036
#define IDC_BUTTON34                            1037
#define IDC_BUTTON35                            1038
#define IDC_BUTTON36                            1039
#define IDC_RADIO1                              1040
#define IDC_BUTTON38                            1041
#define IDC_RADIO2                              1042
#define IDC_BUTTON40                            1043
#define IDC_BUTTON41                            1044
#define IDC_BUTTON42                            1045
#define IDC_BUTTON43                            1046
#define IDC_BUTTON44                            1047
#define IDC_BUTTON45                            1048
#define IDC_BUTTON46                            1049
#define IDC_RADIO3                              1050
#define IDC_BUTTON50                            1053
#define IDC_BUTTON51                            1054
#define IDC_BUTTON52                            1055

po1.rc

// Generated by ResEdit 1.5.4
// Copyright (C) 2006-2010
// http://www.resedit.net

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"

//
// Bitmap resources
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_BITMAP1        BITMAP         ".\\button1\\a1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP10       BITMAP         ".\\button1\\k5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP11       BITMAP         ".\\button1\\s1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP12       BITMAP         ".\\button1\\s2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP13       BITMAP         ".\\button1\\s3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP14       BITMAP         ".\\button1\\s4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP15       BITMAP         ".\\button1\\s5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP16       BITMAP         ".\\button1\\t1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP17       BITMAP         ".\\button1\\t2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP18       BITMAP         ".\\button1\\t3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP19       BITMAP         ".\\button1\\t4.bmp"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_BITMAP2        BITMAP         ".\\button1\\a2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP20       BITMAP         ".\\button1\\t5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP21       BITMAP         ".\\button1\\n1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP22       BITMAP         ".\\button1\\n2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP23       BITMAP         ".\\button1\\n3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP24       BITMAP         ".\\button1\\n4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP25       BITMAP         ".\\button1\\n5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP26       BITMAP         ".\\button1\\h1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP27       BITMAP         ".\\button1\\h2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP28       BITMAP         ".\\button1\\h3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP29       BITMAP         ".\\button1\\h4.bmp"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_BITMAP3        BITMAP         ".\\button1\\a3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP30       BITMAP         ".\\button1\\h5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP31       BITMAP         ".\\button1\\m1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP32       BITMAP         ".\\button1\\m2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP33       BITMAP         ".\\button1\\m3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP34       BITMAP         ".\\button1\\m4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP35       BITMAP         ".\\button1\\m5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP36       BITMAP         ".\\button1\\y1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP38       BITMAP         ".\\button1\\y3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP4        BITMAP         ".\\button1\\a4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP40       BITMAP         ".\\button1\\y5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP41       BITMAP         ".\\button1\\r1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP42       BITMAP         ".\\button1\\r2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP43       BITMAP         ".\\button1\\r3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP44       BITMAP         ".\\button1\\r4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP45       BITMAP         ".\\button1\\r5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP46       BITMAP         ".\\button1\\w1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP5        BITMAP         ".\\button1\\a5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP50       BITMAP         ".\\button1\\w5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP51       BITMAP         ".\\button1\\nn.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP52       BITMAP         ".\\button1\\aq2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP6        BITMAP         ".\\button1\\k1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP7        BITMAP         ".\\button1\\k2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP8        BITMAP         ".\\button1\\k3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_BITMAP9        BITMAP         ".\\button1\\k4.bmp"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_PICTURE1       BITMAP         ".\\picture\\1.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE10      BITMAP         ".\\picture\\10.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE11      BITMAP         ".\\picture\\11.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE12      BITMAP         ".\\picture\\12.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE13      BITMAP         ".\\picture\\13.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE14      BITMAP         ".\\picture\\14.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE15      BITMAP         ".\\picture\\15.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE16      BITMAP         ".\\picture\\16.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE17      BITMAP         ".\\picture\\17.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE18      BITMAP         ".\\picture\\18.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE19      BITMAP         ".\\picture\\19.bmp"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_PICTURE2       BITMAP         ".\\picture\\2.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE20      BITMAP         ".\\picture\\20.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE21      BITMAP         ".\\picture\\21.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE22      BITMAP         ".\\picture\\22.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE23      BITMAP         ".\\picture\\23.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE24      BITMAP         ".\\picture\\24.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE25      BITMAP         ".\\picture\\25.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE26      BITMAP         ".\\picture\\26.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE27      BITMAP         ".\\picture\\27.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE28      BITMAP         ".\\picture\\28.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE29      BITMAP         ".\\picture\\29.bmp"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDB_PICTURE3       BITMAP         ".\\picture\\3.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE30      BITMAP         ".\\picture\\30.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE31      BITMAP         ".\\picture\\31.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE32      BITMAP         ".\\picture\\32.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE33      BITMAP         ".\\picture\\33.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE34      BITMAP         ".\\picture\\34.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE35      BITMAP         ".\\picture\\35.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE36      BITMAP         ".\\picture\\36.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE38      BITMAP         ".\\picture\\38.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE4       BITMAP         ".\\picture\\4.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE40      BITMAP         ".\\picture\\40.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE41      BITMAP         ".\\picture\\41.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE42      BITMAP         ".\\picture\\42.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE43      BITMAP         ".\\picture\\43.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE44      BITMAP         ".\\picture\\44.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE45      BITMAP         ".\\picture\\45.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE46      BITMAP         ".\\picture\\46.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE5       BITMAP         ".\\picture\\5.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE50      BITMAP         ".\\picture\\50.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE51      BITMAP         ".\\picture\\51.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE6       BITMAP         ".\\picture\\6.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE7       BITMAP         ".\\picture\\7.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE8       BITMAP         ".\\picture\\8.bmp"
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDB_PICTURE9       BITMAP         ".\\picture\\9.bmp"

//
// Dialog resources
//
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
DLG_MAIN DIALOG 0, 0, 500, 400
STYLE DS_3DLOOK | DS_ABSALIGN | DS_CENTER | DS_MODALFRAME | DS_SETFONT | WS_CAPTION
 | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_POPUP | WS_SYSMENU
EXSTYLE WS_EX_WINDOWEDGE | WS_EX_APPWINDOW
CAPTION "KanaChan for Windows by WIZSYS NETWORKS"
FONT 8, "MS UI Gothic"
{
    PUSHBUTTON      "Button1", IDC_BUTTON1, 449, 159, 36, 38, BS_BITMAP | BS_FLAT
    CONTROL         "", IDC_SLIDER1, TRACKBAR_CLASS, WS_TABSTOP | TBS_BOTH |
     TBS_NOTICKS, 63, 74, 71, 22
    CONTROL         "", IDC_SLIDER2, TRACKBAR_CLASS, WS_TABSTOP | TBS_AUTOTICKS
     | TBS_BOTH | TBS_NOTICKS, 62, 39, 71, 24
    PUSHBUTTON      "Button1", IDC_BUTTON2, 449, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON3, 449, 239, 36, 38, BS_BITMAP | BS_FLAT
    CONTROL         "", IDC_PICTURE1, WC_STATIC, WS_BORDER | SS_BITMAP | SS_CENTERIMAGE
     | 0x00000840, 312, 17, 135, 115, WS_EX_CLIENTEDGE | WS_EX_TRANSPARENT
    LTEXT           "Volume", IDC_STATIC, 35, 45, 24, 8, SS_LEFT
    LTEXT           "Speed", IDC_STATIC, 37, 80, 20, 8, SS_LEFT
    CONTROL         "", IDC_PICTURE2, WC_STATIC, WS_BORDER | SS_BITMAP
     | SS_CENTERIMAGE | 0x00000840, 190, 16, 105, 115
    PUSHBUTTON      "Button1", IDC_BUTTON4, 449, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON5, 449, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON6, 405, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON7, 405, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON8, 405, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON9, 405, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON10, 405, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON11, 362, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON12, 362, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON13, 362, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON14, 362, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON15, 362, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON16, 317, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON17, 317, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON18, 317, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON19, 317, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON20, 317, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON21, 272, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON22, 272, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON23, 272, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON24, 272, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON25, 272, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON26, 227, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON27, 227, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON28, 227, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON29, 227, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON30, 227, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON31, 183, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON32, 183, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON33, 183, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON34, 183, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON35, 183, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON36, 140, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON38, 140, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON40, 140, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON41, 97, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON42, 97, 199, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON43, 97, 239, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON44, 97, 279, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON45, 97, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON46, 55, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON50, 55, 319, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON51, 13, 159, 36, 38, BS_BITMAP | BS_FLAT
    PUSHBUTTON      "Button1", IDC_BUTTON52, 13, 370, 138, 20, BS_BITMAP | BS_FLAT

    GROUPBOX        "Controls", IDC_STATIC, 16, 14, 144, 118
    AUTORADIOBUTTON "Voice1", IDC_RADIO1, 25, 109, 35, 8, WS_GROUP
    AUTORADIOBUTTON "Voice2", IDC_RADIO2, 67, 109, 38, 8, WS_GROUP
    RADIOBUTTON     "Voice3", IDC_RADIO3, 112, 109, 38, 8
}

//
// Icon resources
//
LANGUAGE LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN
IDI_MYICON         ICON           "C:\\ProjectC\\p01\\my_icon.ico"


LESSON3| LESSON5