📄 wm_bringtotop.lst
字号:
C51 COMPILER V8.05a WM_BRINGTOTOP 04/11/2008 14:19:45 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE WM_BRINGTOTOP
OBJECT MODULE PLACED IN WM_BringToTop.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\WM\WM_BringToTop.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTE
-ND PRINT(.\WM_BringToTop.lst) OBJECT(WM_BringToTop.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : WM_BringToTop.c
16 Purpose : Windows manager routine
17 ----------------------------------------------------------------------
18 */
19
20
21 #include "WM_Intern.h"
22
23 #if GUI_WINSUPPORT /* If 0, WM will not generate any code */
/*********************************************************************
*
* Pull window in foreground (top of stack)
*
**********************************************************************
*/
void WM_BringToTop(WM_HWIN hWin) {
WM_HWIN hPrev, hLast;
WM_Obj* pWin;
WM_Obj* pLast;
if (hWin) {
WM_LOCK();
pWin = WM_H2P(hWin);
/* First of all check if window is already top of stack */
if (pWin->hNext && pWin->hParent) {
/* unlink hWin */
if ((hPrev = WM__GetPrevSibling(hWin)) != 0) {
WM_Obj* pPrev;
pPrev = WM_H2P(hPrev);
pPrev->hNext = pWin->hNext;
} else {
WM_Obj* pParent;
pParent= WM_H2P(pWin->hParent);
pParent->hFirstChild = pWin->hNext;
}
/* Link last sibling */
hLast = WM__GetLastSibling(hWin);
C51 COMPILER V8.05a WM_BRINGTOTOP 04/11/2008 14:19:45 PAGE 2
pLast = WM_H2P(hLast);
pLast->hNext = hWin;
pWin->hNext = 0;
/* Send message in order to make sure top window will be drawn */
WM_InvalidateArea(&pWin->Rect); /* Invalidate new area */
}
WM_UNLOCK();
}
}
#else
66
67 void WM_BringToTop_c(void) {} /* avoid empty object files */
68
69 #endif /* WM_MAX_WINDOW */
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -