|
| ̤²ò·è |
| ²ò·è |
| Ää»ß |
| ºï½üÍ×ÀÁ |
|
2012/6/12(Tue) 07:37:56|NO.47228
¥á¥Ë¥å¡¼¥Ð¡¼¤¬ÏȤʤ·¥¦¥£¥ó¥É¥¦¤Î¾å¤ËÍè¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¹õ¤ÎÀþ¤Î²¼¤Ë»ý¤Ã¤Æ¹Ô¤¤¿¤¤¤Î¤Ç¤¹¤¬°ÜÆ°ÊýË¡¤¬Ê¬¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
¥á¥Ë¥å¡¼¥Ð¡¼¤òÆ°¤«¤¹ÊýË¡¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£
#include "user32.as"
#define ctype LOWORD(%1) (%1 & $FFFF)
; ¹àÌÜID
#enum IDM_KOUMOKU1
#enum IDM_KOUMOKU2
; WM_COMMAND¥á¥Ã¥»¡¼¥¸
oncmd gosub *Menu_bar, $111
CreatePopupMenu
hMenu.1=stat
AppendMenu hMenu.1,0,IDM_EXIT,"½ªÎ»"
; <¥á¥¤¥ó¤Î¥á¥Ë¥å¡¼¥Ð¡¼>
CreateMenu
hMenu.0=stat
AppendMenu hMenu.0,$10,hMenu.1,"¥á¥Ë¥å¡¼"
bgscr 0,320,240:cls 2
color:boxf 0,0,320,20
onclick gosub *move
SetMenu hwnd,hMenu.0
DrawMenuBar hwnd
stop
*move
if mousey <20:if wparam=1:sendmsg hwnd,$00A1,2,0
return
*Menu_bar
end
|
|
2012/6/12(Tue) 16:30:14|NO.47232
/*Bgscr¤ò¥³¥ó¥Æ¥Ê¤Ë¤·¤Æ¤â¤¦°ì¤Ä¤ÎBgscr¤Î»Ò¤Ë¤¹¤ë¤È¤«*/
#include "user32.as"
#define ctype LOWORD(%1) (%1 & $FFFF)
; ¹àÌÜID
#enum IDM_KOUMOKU1
#enum IDM_KOUMOKU2
; WM_COMMAND¥á¥Ã¥»¡¼¥¸
oncmd gosub *Menu_bar, $111
CreatePopupMenu
hMenu.1=stat
AppendMenu hMenu.1,0,IDM_EXIT,"½ªÎ»"
; <¥á¥¤¥ó¤Î¥á¥Ë¥å¡¼¥Ð¡¼>
CreateMenu
hMenu.0=stat
AppendMenu hMenu.0,$10,hMenu.1,"¥á¥Ë¥å¡¼"
GetSystemMetrics 15 :hh = stat ; ¡ÄÉ¡¡²Ã
bgscr 0,320,hh,,0,0 :cls 2 ; ¢ÊÑ¡¡¹¹
ww =hwnd ; £ÄÉ¡¡²Ã
SetMenu hwnd,hMenu.0 ; ¤¹Ô°ÜÆ°
DrawMenuBar hwnd ; ¥¹Ô°ÜÆ°
bgscr 1,320,240 ; ¦ÄÉ¡¡²Ã
Setparent ww,hwnd ; §ÄÉ¡¡²Ã
color:boxf 0,hh,320,hh+20 ; ¨ÊÑ¡¡¹¹
onclick gosub *move
stop
*move
if mousey <hh+20:if wparam=1:sendmsg hwnd,$00A1,2,0
return
*Menu_bar
end
|
|
2012/6/12(Tue) 18:55:35|NO.47234
fortunehill¤µ¤ó¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
夤¤¿¥½¡¼¥¹¤Ç¤¹¤¬¡¢¾¯¤·¤¤¤¸¤é¤»¤Æ¡¢¤¤¤¿¤À¤¤Þ¤·¤¿¡£
#include "user32.as"
#define ctype LOWORD(%1) (%1 & $FFFF)
; ¹àÌÜID
#enum IDM_KOUMOKU1
#enum IDM_KOUMOKU2
; WM_COMMAND¥á¥Ã¥»¡¼¥¸
oncmd gosub *Menu_bar, $111
CreatePopupMenu
hMenu.1=stat
AppendMenu hMenu.1,0,IDM_EXIT,"½ªÎ»"
; <¥á¥¤¥ó¤Î¥á¥Ë¥å¡¼¥Ð¡¼>
CreateMenu
hMenu.0=stat
AppendMenu hMenu.0,$10,hMenu.1,"¥á¥Ë¥å¡¼"
GetSystemMetrics 15 :hh = stat ; ¡ÄÉ¡¡²Ã
bgscr 0,320,hh,,0,20 ; ¢ÊÑ¡¡¹¹
ww =hwnd ; £ÄÉ¡¡²Ã
SetMenu hwnd,hMenu.0 ; ¤¹Ô°ÜÆ°
DrawMenuBar hwnd ; ¥¹Ô°ÜÆ°
bgscr 1,320,240:cls 2 ; ¦ÄÉ¡¡²Ã
Setparent ww,hwnd ; §ÄÉ¡¡²Ã
color:boxf 0,hh-20,320,hh ; ¨ÊÑ¡¡¹¹
onclick gosub *move
stop
*move
if mousey <hh+20:if wparam=1:sendmsg hwnd,$00A1,2,0
return
*Menu_bar
end
|
|