CanvasChange(CANVAS_MODE_MAP); break; case IDM_CANVAS_KEYBOARD: CanvasChange(CANVAS_MODE_KEYBOARD); break; case IDM_CANVAS_KEYBOARD_A: 
CanvasChange(CANVAS_MODE_MAP32); break; case IDM_CANVAS_KEYBOARD: CanvasChange(CANVAS_MODE_KBD_A); break; case IDM_CANVAS_KEYBOARD_A: 
CanvasWndProc(HWND hwnd, UINT uMess, WPARAM wParam, LPARAM lParam){	switch (uMess)	{		case WM_CREATE:			Canvas.hPopupMenuKeyboard = CreatePopupMenu();			AppendMenu(Canvas.hPopupMenuKeyboard,MF_STRING,IDM_CANVAS_KEYBOARD_A,"A Part");			AppendMenu(Canvas.hPopupMenuKeyboard,MF_STRING,IDM_CANVAS_KEYBOARD_B,"B Part");			Canvas.hPopupMenu = CreatePopupMenu();			AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_GSLCD,"LCD Mode");			AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_MAP16,"Map16 Mode");			AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_MAP32,"Map32 Mode");			//	AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_KEYBOARD,"Keyboard Mode");			AppendMenu(Canvas.hPopupMenu,MF_POPUP,(UINT)Canvas.hPopupMenuKeyboard,"Keyboard Mode");			AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_SLEEP,"Sleep Mode");			AppendMenu(Canvas.hPopupMenu,MF_SEPARATOR,0,0);			AppendMenu(Canvas.hPopupMenu,MF_STRING,IDM_CANVAS_REDRAW,"Redraw");			break;		case WM_DESTROY:			DestroyMenu ( Canvas.hPopupMenuKeyboard );			Canvas.hPopupMenuKeyboard = NULL;			break;		case WM_PAINT:			CanvasPaintDo();    		return 0;		case WM_LBUTTONDBLCLK:			w32g_send_rc(RC_EXT_MODE_CHANGE, 0);			break;      case WM_RBUTTONDOWN:      {      	RECT rc;      	GetWindowRect(Canvas.hwnd,(RECT *)&rc);				SetForegroundWindow ( Canvas.hwnd );			TrackPopupMenu(Canvas.hPopupMenu,TPM_TOPALIGN|TPM_LEFTALIGN,         	rc.left+(int)LOWORD(lParam),rc.top+(int)HIWORD(lParam),            0,Canvas.hwnd,NULL);				PostMessage ( Canvas.hwnd, WM_NULL, 0, 0 );      }			break;		case WM_COMMAND: 	    	switch (LOWORD(wParam)) {         case IDM_CANVAS_SLEEP:         	CanvasChange(CANVAS_MODE_SLEEP);            break;         case IDM_CANVAS_MAP16:				Canvas.MapMode = CMAP_MODE_16;         	CanvasChange(CANVAS_MODE_MAP);            break;         case IDM_CANVAS_MAP32:				Canvas.MapMode = CMAP_MODE_32;         	CanvasChange(CANVAS_MODE_MAP);            break;         case IDM_CANVAS_KEYBOARD:         	CanvasChange(CANVAS_MODE_KEYBOARD);            break;         case IDM_CANVAS_KEYBOARD_A:				Canvas.CKPart = 1;         	CanvasChange(CANVAS_MODE_KEYBOARD);            break;         case IDM_CANVAS_KEYBOARD_B:				Canvas.CKPart = 2;         	CanvasChange(CANVAS_MODE_KEYBOARD);            break;         case IDM_CANVAS_GSLCD:         	CanvasChange(CANVAS_MODE_GSLCD);            break;         case IDM_CANVAS_REDRAW://				PanelResetPart(PANELRESET_CHANNEL);				CanvasReset();			  	CanvasClear();				CanvasReadPanelInfo(1);				CanvasUpdate(1);				CanvasPaintAll();            break;			}			break;		default:			return DefWindowProc(hwnd,uMess,wParam,lParam) ;	}	return 0L;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/3cacafdff0edd587d9addaa7928cbdfd541d448e/w32g_i.c/buggy/interface/w32g_i.c