< ¿öÅ©½ÃÆ®¸Þ´º¹Ù>
MENU_LEVEL0ÀÇ ¸Þ´º(¿ÀÆ©°ø±¸ÇÔ)¸¦ ¸¸µé±â À§Çؼ´Â ¿¢¼¿ÀÇ ¿öÅ©½ÃÆ®¸Þ´º¹Ù °³Ã¼¸¦ ÂüÁ¶ÇØ¾ß ÇÕ´Ï´Ù. À̸¦ ÂüÁ¶Çϱâ À§ÇÑ º¯¼ö
cmdbarPopup À» ¼±¾ðÇß½À´Ï´Ù. ±×¸®°í cmdbarPopup º¯¼öÀÇ µ¥ÀÌÅÍÇüÀº CommandBarPopupÀÔ´Ï´Ù. ÀÌ´Ü°è¿¡¼´Â
½ÇÁ¦ ¿öÅ©½ÃÆ®¸Þ´º¹Ù °³Ã¼¸¦ cmdbarPopup º¯¼ö¿¡ ÇÒ´çÇÑ °ÍÀº ¾Æ´Õ´Ï´Ù. ´Ù¸¸ ¼±¾ð¸¸ ÇصР°ÍÀÌÁÒ.
Dim cmdbarPup As CommandBarPopup
< MENU_LEVEL1 Æ˾÷¸Þ´º¹Ù>
cmdbarPupÀº CommandBarPopupº¯¼ö·Î¼ À§ÀÇ ±×¸²°ú °°Àº Æ˾÷¸Þ´º¸¦ ÀúÀåÇÒ °³Ã¼ÀÔ´Ï´Ù.
Dim cmdbarBtn As CommandBarButton
< MENU_LEVEL2 ¹öÆ°¸Þ´º¹Ù>
cmdbarBtn Àº CommandBarButtonº¯¼öÀ̸ç ÃÖÇÏÀ§°èÃþÀÇ ¸Þ´º¸¦ ´ã´Â º¯¼öÀÔ´Ï´Ù.
Dim bytBefore As Byte
Dim bytRow As Byte
bytBefore´Â ¿ÀÆ©°ø±¸ÇÔ¸Þ´º¸¦ ¿öÅ©½ÃÆ®¸Þ´º¹Ù³»ÀÇ À§Ä¡¸¦ ÀúÀåÇÕ´Ï´Ù.
bytRow´Â ¸Þ´ºÀÇ µ¥ÀÌÅ͸¦ ¿öÅ©½ÃÆ®·Î Àоî¿À±â À§ÇØ ÇàÀÇ ¹øÈ£¸¦ ÀúÀåÇÕ´Ï´Ù.
Dim usrMnu As mnuType
¾Õ¼ ¼±¾ðÇÑ ±¸Á¶Ã¼¸¦ µ¥ÀÌÅÍÇüÀ¸·Î ÇÏ´Â º¯¼ö¸¦ ¼±¾ðÇÕ´Ï´Ù. ÀÌÁ¦ º¯¼ö¸¦ »ç¿ëÇÏ·Á¸é usrMnu.mnuLvl ,
usrMnu.mnuCaptionµîµîÀ¸·Î »ç¿ëÇÕ´Ï´Ù.
DeleteUserMenu
ÇÁ·Î±×·¥¼Ò½º ÇÏ´Ü¿¡ ÀÖ´Â Sub DeleteUserMenu( )¸¦ ½ÇÇàÇÕ´Ï´Ù.
ÇÁ·Î½ÃÁ® À̸§À» º¸½Ã¸é ¾Ë°ÚÁö¸¸ »ç¿ëÀÚÁ¤ÀǸ޴º¸¦
»èÁ¦ÇÏ´Â ¿ªÇÒÀ» ÇÕ´Ï´Ù. ¾Æ´Ï ¸¸µé±âµµ Àü¿¡ ¹«½¼ »èÁ¦¸¦
¸ÕÀú ÇÏ´À³Ä°í ±Ã±ÝÇϽÇÅÙµ¥, ÀÌ´Â Sub CreateUserMenu( )¸¦ 2ȸÀÌ»ó
½ÇÇàÇÏ¿© ¿ÀÆ©°ø±¸ÇÔ¸Þ´º°¡ 2°³ÀÌ»ó »ý±â´Â ÀÏÀ» ¹æÁöÇϱâ
À§ÇÑ °ÍÀÌ Ã¹¹ø° ÀÌÀ¯ÀÔ´Ï´Ù. ±×¸®°í ÇÁ·Î±×·¥ÀÇ
°³¹ß´Ü°è¿¡¼´Â ÀÚÁÖ Sub CreateUserMenu( )¸¦ µ¹·Áº¼ÅÙµ¥ À̸¦
ÀÏÀÏÀÌ »èÁ¦ÇÏ·Á´Â ¼ö°í¸¦ ´ú±â À§ÇÑ °ÍÀÌ µÎ¹ø°
ÀÌÀ¯ÀÔ´Ï´Ù.
|