⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wm_makemodal.txt

📁 STM32F103ZET6+UCOSII+UCGUI源码
💻 TXT
字号:
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\wm_makemodal.o --depend=.\Obj\wm_makemodal.d --device=DARMSTM --apcs=interwork -O3 -I..\..\include -I..\..\..\FWLib\library\inc -I..\..\..\USBLib\library\inc -I..\..\Config -I..\..\GUI\Core -I..\..\GUI\Font -I..\..\GUI\ConvertColor -I..\..\GUI\AntiAlias -I..\..\GUI\ConvertMono -I..\..\GUI\JPEG -I..\..\GUI\MemDev -I..\..\GUI\MultiLayer -I..\..\GUI\Widget -I..\..\GUI\WM -IC:\Keil\ARM\INC\ST\STM32F10x ..\..\GUI\WM\WM_MakeModal.c]
                          THUMB

                          AREA ||i.WM_MakeModal||, CODE, READONLY, ALIGN=2

                  WM_MakeModal PROC
;;;42     */
;;;43     void WM_MakeModal(WM_HWIN hWin) {
000000  b53e              PUSH     {r1-r5,lr}
;;;44       WM_LOCK();
;;;45       WM__CHWinModal.hWin = hWin;
000002  490d              LDR      r1,|L1.56|
000004  8088              STRH     r0,[r1,#4]
;;;46       /* Send a message to the window that it is no longer pressed (WM_TOUCH(0)) 
;;;47          if it is outside the modal area, because otherwise it will not receive this message any more.
;;;48       */
;;;49       if (WM__CHWinLast.hWin) {
000006  4c0d              LDR      r4,|L1.60|
000008  88a0              LDRH     r0,[r4,#4]  ; WM__CHWinLast
00000a  2800              CMP      r0,#0
00000c  d013              BEQ      |L1.54|
;;;50         if (!WM__IsInModalArea(WM__CHWinLast.hWin)) {
00000e  f9b40004          LDRSH    r0,[r4,#4]  ; WM__CHWinLast
000012  f7fffffe          BL       WM__IsInModalArea
000016  2800              CMP      r0,#0
000018  d10d              BNE      |L1.54|
;;;51           WM_MESSAGE Msg = {0};
00001a  2100              MOVS     r1,#0
00001c  4668              MOV      r0,sp
00001e  460a              MOV      r2,r1
000020  460b              MOV      r3,r1
000022  c00e              STM      r0!,{r1-r3}
;;;52           Msg.MsgId = WM_TOUCH;
000024  200c              MOVS     r0,#0xc
;;;53           WM__SendPIDMessage(WM__CHWinLast.hWin, &Msg);
000026  9000              STR      r0,[sp,#0]
000028  f9b40004          LDRSH    r0,[r4,#4]  ; WM__CHWinLast
00002c  4669              MOV      r1,sp
00002e  f7fffffe          BL       WM__SendPIDMessage
;;;54           WM__CHWinLast.hWin = 0;
000032  2000              MOVS     r0,#0
000034  80a0              STRH     r0,[r4,#4]
                  |L1.54|
;;;55         } 
;;;56       }
;;;57       WM_UNLOCK();
;;;58     }
000036  bd3e              POP      {r1-r5,pc}
;;;59     
                          ENDP

                  |L1.56|
                          DCD      WM__CHWinModal
                  |L1.60|
                          DCD      WM__CHWinLast

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -