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

📄 framewin_settitleheight.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\framewin_settitleheight.o --depend=.\Obj\framewin_settitleheight.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\Widget\FRAMEWIN_SetTitleHeight.c]
                          THUMB

                          AREA ||i.FRAMEWIN_SetTitleHeight||, CODE, READONLY, ALIGN=1

                  FRAMEWIN_SetTitleHeight PROC
;;;36     */
;;;37     int FRAMEWIN_SetTitleHeight(FRAMEWIN_Handle hObj, int Height) {
000000  e92d41f0          PUSH     {r4-r8,lr}
000004  ea5f0800          MOVS     r8,r0
000008  460e              MOV      r6,r1
;;;38       int r = 0;
00000a  f04f0500          MOV      r5,#0
;;;39       if (hObj) {
00000e  d017              BEQ      |L1.64|
;;;40         FRAMEWIN_Obj* pObj;
;;;41         int OldHeight;
;;;42         WM_LOCK();
;;;43         pObj = FRAMEWIN_H2P(hObj);
000010  4640              MOV      r0,r8
000012  f7fffffe          BL       GUI_ALLOC_h2p
;;;44         r = pObj->Props.TitleHeight;
000016  f9b05040          LDRSH    r5,[r0,#0x40]
00001a  4604              MOV      r4,r0                 ;43
;;;45         if (Height != r) {
00001c  42ae              CMP      r6,r5
00001e  d00f              BEQ      |L1.64|
;;;46           OldHeight = FRAMEWIN__CalcTitleHeight(pObj);
000020  4620              MOV      r0,r4
000022  f7fffffe          BL       FRAMEWIN__CalcTitleHeight
000026  4607              MOV      r7,r0
;;;47           pObj->Props.TitleHeight = Height;
000028  f8a46040          STRH     r6,[r4,#0x40]
;;;48           FRAMEWIN__UpdatePositions(pObj);
00002c  4620              MOV      r0,r4
00002e  f7fffffe          BL       FRAMEWIN__UpdatePositions
;;;49           FRAMEWIN__UpdateButtons(pObj, OldHeight);
000032  4639              MOV      r1,r7
000034  4620              MOV      r0,r4
000036  f7fffffe          BL       FRAMEWIN__UpdateButtons
;;;50           FRAMEWIN_Invalidate(hObj);
00003a  4640              MOV      r0,r8
00003c  f7fffffe          BL       WM_InvalidateWindow
                  |L1.64|
;;;51         }
;;;52         WM_UNLOCK();
;;;53       }
;;;54       return r;
000040  4628              MOV      r0,r5
;;;55     }
000042  e8bd81f0          POP      {r4-r8,pc}
;;;56     
                          ENDP

⌨️ 快捷键说明

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